Share same Slug for a Custom Post Type and 2 Taxonomies
Share same Slug for a Custom Post Type and 2 Taxonomies
Share same Slug for a Custom Post Type and 2 Taxonomies
How to add a post slug to a url?
What query string parameter is available for index.php, that works for both pages and blog articles?
Child post with numeric only slug keeps redirecting to parent
On a category archive page, you can use get_queried_object() to get the data of the current category in the main request, and get the slug like so: get_queried_object()->slug.
You can retrieve the author page URL for any user by their user ID using the WordPress native function get_author_posts_url(). Combining this with get_users() to retrieve an array of users, you can create an author list in pretty much any way you like! Below is an example of the usage of get_author_posts_url(), displaying a link … Read more
For beta testing use either a separate domain or at least a subdomain in another directory than your live site. If you absolutely have to use the current setup install a plugin that offers password protection like Members or change the .htaccess rules to: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # … Read more
You need to filter ‘sanitize_title’ and use the second argument, the raw title. See my plugin Germanix for an example.
WPML has a feature called “Automatically Adjust IDs” which detect when specific items are loaded and adjust IDs so that the results are adjusted for the active language. This functionality is enabled by default and can be accessed via WPML->Languages (visible in Advanced mode):
In the appropriate template file, you need to replace the_excerpt() with the_content(). As this is a change specific to a known category (i.e. “podcasts”), I would recommend creating a custom template file for that category, called category-podcasts.php, and making the change in that template file. To create this template file, look for (in order) category.php, … Read more