How to get post permalink url without a href
I need code to get post url without a href, for example: <a href="http://mywebsite.com/permalink" rel="permalink">single post title</a>
I need code to get post url without a href, for example: <a href="http://mywebsite.com/permalink" rel="permalink">single post title</a>
I want to add all the blog posts to the /blogs/the-post-name type structure. I can do this through the permalinks settings with:
I am trying to figure out how to get a list of the permalinks for top-level pages only. My goal is to put them in a selection box on a form. I have spent a couple of hours searching here for an answer to no avail. I was hoping someone could point me in the right direction.
The edit post permalink button is totally removed ( not hidden with css ) from the edit view – but the slug is still editable from both the Quick Edit view and also via the “slug” panel which I can show from Screen Options.
I’ve created a custom post type “testimonials” — works fine, except I want the url to be “domain.com/results/testimonials” instead of “domain.com/testimonials”
Permalink to products and post of my website getting 404 error. after saving the permalink type in Setting -> Permalink page they will work correctly. But if I refresh the links they get 404 error again. Actually the links work only once.
All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. When I access a page, I can see that the link is being updated with the page name, but it returns a 404.
The goal is to have a structure like this: example.com/tax_1/tax_2/post_name
I am having trouble working with WordPress rewrite rules, and could use some help.
When a single post is clicked on from a category page or for that matter any page, you can get the URL of that referrer and parse it to get the query string. But this only works with the default permalink structure