Does WordPress keep track of a post’s URL history and provide automatic redirects?
I just changed the URL of one of my posts from
I just changed the URL of one of my posts from
I’m trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full url.
I have a custom post type for slideshows that creates a paginated post and each slide is a separate page. The data for each slide is saved in the custom fields and each slide has a title set saved in the custom field with key slide{$i}-title ($i being the slide number, for example slide1-title).
I must say that I am a complete nooby at WordPress custom URL rewrites. I have searched for past many days to find a clear explanation of how to determine and write correct pattern for URL rewrites. I have a custom page template that uses query var passed to it, e.g. http://example.com/pagename?user=username. In this “pagename” refers to the custom page template and “user” refers to the custom query var. I need this to be represented using the URL http://example.com/pagename/username.
We are using CPT’s to manage a frequently asked questions page on a site, where the question is the post title and the answer is the post content. There is a main page for the FAQs that shows all posts (FAQ archive page). With this structure we really have no need for the single view for any FAQ and in fact would like to omit it from the site structure. To address permalinks we’d like to set them to be something like example.com/faq/#uniqueIdentifier, thinking that we’ll use the #uniqueIdentifier to match a div on the archive page containing the answer and call attention to it in some fashion. The uniqueIdentifier could be post ID, faq question title, data from a meta box, or something else.
I have created a custom post type called “events” and have also created a custom taxonomy which only shows up on this specific post type through which the admin must select an “event category” (terms).
We are working on larger system, which is based on WordPress, but WordPress is used only for “static” content, the main part of the system should be consuming the external API and displaying the data.
I want to use a category page as the home page of my blog. Is that possible and how can I do it? It tried it with a .htacces rewrite rule but that didn’t worked.
function my_add_rewrite_rules() { add_rewrite_rule('testing/([^/]+)?$', 'index.php?pagename=testing&event_slug=$matches[1]', 'top' ); } add_action( 'init', 'my_add_rewrite_rules' ); function add_query_vars( $query_vars ) { $query_vars[] = 'event_slug'; return $query_vars; } add_filter( 'query_vars', 'add_query_vars' ); /testing/foo – Works, shows foo If I have testing set to no parent, the rewrite works and everything is good to go. If I set testing to a … Read more
I am trying to get my head around the permalink structures on WordPress sites, and I’m a bit stuck with what I’m trying to achieve: