Custom Post Type and Custom Taxonomy Permalinks

I’m currently working with a client’s WordPress blog that has a permalink structure set in the admin settings as “/speaks/%postname%/”. This is so that all actual blog posts (post_type=>posts) have the word “speaks” before them. However, I have created a new custom post type and a new custom taxonomy for a new section on the … Read more

add_rewrite_rule not registering on Multisite

I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I have registered. The code below is how I am registering the rule: add_action( ‘init’, ‘add_init_rules’ ); function add_init_rules() { add_rewrite_rule(‘^car/([^/]*)/([^/]*)/?’,’index.php?pagename=car&id=$matches[1]&make=$matches[2]’,’top’); } The rule I have added does not appear in the Monkeyman … Read more

Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML

I’m interested getting some help for a rather complex setup. I’m working on a publication and interested in creating a special subsection with a custom taxonomy. Think of this as an editorial subsection with different categories – travel, food, fashion, etc. I want to create a setup like this: home.com/subsection (archive for all articles) home.com/subsection/travel … Read more

How to Combine Two Custom Post Types into Single Permalink Structure

The website uses – A) A hierarcical Custom Post Type “Destination” to support the following structure, so each tier of the hierarchy could have its own unique destination guide: Territory – Americas Continent – North America Section – Country – United States Region – State – New York Area – City – New York City … Read more

changing comment-page-# to something like review-page-#

When you enable pagination for comments in wordpress the typical pagination page for a comment is “comment-page-1” “comment-page-2” etc. what I want is this to appear like “review-page-1” “review-page-2” etc. (I am using comments for a reviews) Somehow I have managed to accomplish this but there is one weird behaviour that I can’t seem to … Read more

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it’s slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want to change the url of the news_category to news news . so url of news taxonomy would be: http://domain.com/news/press-release i tried to rewrite the slug news_category to … Read more

Rewrite URL – insert custom variables as a directory path

I’m trying to re-write permalink structure with my own custom url in WordPress for a Divi Theme “project” I have already changed the “Divi slug” from “project” to “prodotti” so currently, the URL appears like this: http://www.example.com/prodotti/%postname%/ with my custom function function custom_post_name() { return array( ‘feeds’ => true, ‘slug’ => ‘prodotti’, ‘with_front’ => false, … Read more

Custom WP TItle from custom template with dynamic URL structure

I am new to custom WP development, but I have made a custom plugin. With a custom rewrite I have made the following URL structure: /profile/[company_name]/ I have made a new post Profile with a custom template (page-profile.php). I created a WordPress Plugin which gets external info based on the dynamic url. So I get … Read more