Creating additional page with own URL for each custom post
You need to use custom endpoints for it. Read The Rewrite API: Basics article for more information, especially section Add Custom Endpoint.
You need to use custom endpoints for it. Read The Rewrite API: Basics article for more information, especially section Add Custom Endpoint.
I have explained a similar trick over here. You’ll have to modify it a bit to suit your need.
Go into the trash from the category list and hit “Empty Trash”. As long as the category is in the trash, the slug is considered ‘in use’. ETA: This is obviously not right, as there’s no trash in categories. Instead, using phpMyAdmin, go to database->wp_terms, and delete the row with the category information. Walkthrough here.
I had to modify queries before they run. So the best practice was to add the following code to function.php: if (!function_exists(‘my_theme_filter’)) { function my_theme_filter( $query ){ if ( $query->is_main_query() ) if ( $query->get( ‘tag’ ) OR is_search() ) $query->set( ‘post_type’, array( ‘artprim_item’ ) ); //echo ‘<pre>’; print_r($query); echo ‘</pre>’; return $query; }} add_filter( ‘pre_get_posts’, … Read more
If you’re on a local install, it’s fairly trivial to fix this. Just use phpMyAdmin to reset home_url and/or site_url in the wp_options table in the database. Switching between two localhost installs is also fairly straight-forward: just don’t actually use “localhost” for anything. Instead, set up a unique domain in your system’s hosts file for … Read more
look for wp-app.php and MEDIA_SINGLE_PATH
Are you asking if you could do something like this: /states/%postname%/ In the permalink structure? As to why it’s giving back a 404 I’m not sure.
You can add a filter to the function that gets attachment links to force that format: function wpa60888_attachment_link( $link, $id ){ return home_url() . ‘/?attachment_id=’ . $id; } add_filter( ‘attachment_link’, ‘wpa60888_attachment_link’, 10, 2 ); Calls to get_attachment_link will have this filter applied to the output.
This doesn’t exactly solve your problem but you could redirect from /blog.html to /blog
I think this Custom Field Template plugin will help you. Plugin site. Don’t worry about Chinese screenshots. If you set at least one Custom Field Template for one category, when creating post and check that category additional options will appear.