Skip to main content

Unanswered Questions

1,578 questions with no upvoted or accepted answers
10 votes
1 answer
983 views

Custom Taxonomy Endpoint Pagination using paginate_links()

The Setup I have 2 taxonomies and 1 post type: Post Type: products Hierarchical Taxonomy: product_cat Nonhierarchical Taxonomy: product_type The product-category has a defined endpoint: ...
7 votes
0 answers
3k views

add_rewrite_endpoint() not working for custom post type archives

i'm working on somekind of wiki/encyclopedia system based on wordpress. there are two custom post types. i'll show my configuration for one of them: $labels = array( 'name' => _x('Objects', '...
5 votes
2 answers
1k views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
4 votes
0 answers
230 views

Can rewrites fallback if 404? Rewrite conflict issue

I have pages and product categories on my site: Pages: --About --Contact Products: --Category 1 ----Subcategory 1 --Category 2 Ideally I want mysite.com/category-1/subcategory-1 to show the product ...
4 votes
1 answer
1k views

Custom taxonomy on permalink

I have a long time problem and look forward for your help. I have a custom taxonomy of "city" (it is no hierarchical like tags). I just would like my URLs to look like this: /%city%/%category%/%...
4 votes
0 answers
2k views

get_permalink returns default link

I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /develop/...
4 votes
0 answers
194 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
3 votes
0 answers
90 views

Child post with numeric only slug keeps redirecting to parent

I modified the allow-numeric-stubs plugin code to work with CPTs. You can view my forked repository here: https://github.com/akshatkedia/allow-numeric-stubs WordPress is now allowing numeric slugs for ...
3 votes
0 answers
91 views

add_rewrite_rule is redirecting instead of rewriting url

I have a page that is accessible at /products/. I want to be able to access it at /products/canada/ontario/toronto/ (and not redirect to /products) The place names after /products/ should be query ...
3 votes
0 answers
875 views

Using 'Primary Category' in URL

I'm running into an issue where I want to set up categories in my URL (%category%/%postname%), but doing this will create multiple URLs for the same content if I select multiple categories. So, for ...
3 votes
0 answers
2k views

Add parent/child taxonomy to custom post type url

I have seen several cases of one taxonomy being added to a custom post type url, but I have modified that function to include a parent and a child taxonomy term. However, I am getting a 404 when I go ...
3 votes
0 answers
259 views

rewrite_rule for custom post type doesn't affect get_permalink

I have a custom post type named course. I added rewrite rules so I can include post_meta data in the URL. /* Rewrite URLs for generate dynamic template */ add_filter( 'generate_rewrite_rules', '...
3 votes
2 answers
1k views

Cache Busting using htaccess Rewrite rule?

I am trying to follow this tutorial that says i can make a server to send a file like style.css if the requested file is style.15458888.css with a rewrite rule to be put inside the htaccess file. ...
3 votes
1 answer
932 views

Link for the page archive for posts, like using custom post types with get_post_type_archive_link

I am trying to get the page to list all my posts (post type = post) in archive. I can do this with custom post types, with get_post_type_archive_link(), but using get_post_type_archive_link('post') ...
3 votes
0 answers
190 views

Add 'articles' prefix before blog posts url without affecting pagination

I tried this solution for adding 'articles' prefix before blog posts on URL. function filter_post_link($permalink, $post) { if ($post->post_type != 'post') return $permalink; return '...

15 30 50 per page
1
2 3 4 5
106