All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

How to make archive of categories subcategories for custom post pages that distinguish between CPT

I have a problem I have 4 different custom post types readymade_public readymade_private collections_public collections_private And the structure is something like this is going to work ...
0
votes
2answers
27 views

How to have a dynamic slug and rendering the archive-{post_type}.php?

So I have a Custom Post Type named network and Custom Taxonomy name company_category. Everything is all good until I can't render http://localhost/digitalhxstaging/company. Both Company Category and ...
0
votes
0answers
19 views

Permalink like example.com/taxonomy/post_type/postname

I would like permalink structures like this: example.com/%post_tag%/post_type/postname for posts example.com/%post_tag%/post_type for archive page of post_tag filtered with custom post type archive ...
0
votes
1answer
236 views

Prevent Archive URLs

My Wordpress site goes looking for an archive page if I append a year after the URL. For example: http:/mysiteurl.com/my-site/2018. If there are posts from this year, it ends up redirecting to index....
0
votes
1answer
389 views

Wordpress subcategories return 404 in custom template

I have a custom Wordpress theme and a main menu on top. This menu has links to different pages, one of them is a link to a Category (archive). It works fine for any first level category, but if I link ...
1
vote
1answer
6k views

Permalinks for WooCommerce Categories and Subcategories

Setup Desired permalink structure (only these structures exist for products) Product 1: /shop/category/subcategory/product1/ Product 2: /shop/category/product2/ Woocommerce Product View Settings ...
0
votes
0answers
129 views

How can i remove post type archive URL?

I am trying to disable portfolio archive link form a post type. Beacuse my most important page shares the same url with my archive. And its wont let my actual page link working. How can i fix this? ...
0
votes
1answer
124 views

Custom post type URL structure with site.com/custom_taxonomy_slug/post_name

I'm quite new to wordpress and I'm struggling to adjust the URL structure to my needs. I work with a theme that provides a plugin for a custom portfolio post type along with custom taxonomies : ...
1
vote
1answer
42 views

Programatically changing post's permalink when identical post type is published

Is there a way in Wordpress for me to create content for a specific permalink ( mysite.com/current-issue ) that can be updated each month. With each update, the old content's permalink is ...
0
votes
1answer
450 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') ...
0
votes
0answers
442 views

Custom taxonomy return 404

I have created custom taxonomy like so: CODE: /* * Register Product Category Taxonomy */ function product_category_taxonomy() { $labels = array( 'name' => _x( '...
1
vote
2answers
159 views

Date Archives' Permalinks under Category folder

I have my WP put under /wp and then my-blog (which is an category, with the slug name 'my-blog') is set to access from (via the plugin 'Top level category') /my-blog/ everything seems fine, except ...
6
votes
1answer
187 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
1
vote
0answers
2k views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
0
votes
1answer
13 views

Permalinks - Archives

The WordPress docs say: WordPress offers you the ability to create a custom URL structure for your permalinks and archives. https://codex.wordpress.org/Settings_Permalinks_Screen I see how this ...
0
votes
0answers
32 views

Weird slug in archives permalink

All my wordpress installs (and some others, as I see) have the archive based index in the following format http://example.com/date/2015/06/02. But most current installs out there display it as just ...
1
vote
1answer
62 views

Can't select blog month within archive category

I'm using Wordpress 4.1.1. I have come across a problem with my website archives. If I set the permalinks to default I can click on a category and then click on the date on the sidebar within this ...
-1
votes
1answer
158 views

Strip category base from URL?

Where I Place This Code Or How Can I Use This? function wpa_alter_cat_links( $termlink, $term, $taxonomy ){ if( 'category' != $taxonomy ) return $termlink; return str_replace( '/category', ''...
1
vote
2answers
722 views

Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname

I have a custom post type "news_updates" which I have not given custom tags or categories. I have however created a normal tag (not attached to a custom post type), and assigned it to a particular ...
0
votes
1answer
42 views

WordPress Archives Cause Looping

I am attempting to create an archives page that would have links to authors, categories, tags, etc. I would like it so that when the author, for example, is clicked, all their posts are displayed. ...
0
votes
1answer
163 views

Create monthly archive for parent category

Part of the website I'm working on is meant to function like a monthly magazine, with a few different departments. So I have 'Magazine' set as the parent category, and say 'Art' and 'Music' as child ...
0
votes
1answer
82 views

I Need to use Month , year in my all archives and pages of my wordpress site

I need to have month/year in all my pages in my wordpress site . For example : If that the page title is " Online exams " I need to have it like " October 2014 online exams" . I have around 10-12 ...
0
votes
1answer
37 views

Permalink, links a page to the homepage

So I'm using the 'post-name' pretty permalink structure. I have a page called The Trust, the slug of this page is the-trust. But when i go onto www.mydomain.com/the-trust, it shows the the homepage. ...
1
vote
1answer
686 views

Root level category, tag, author and archive pages to work

I want root level Wordpress urls to work for category, tag, author and archive page. For example right now categories pages are. domain.com/category/cat-name/ it shows posts under cat-name category. ...
0
votes
1answer
77 views

Permalinks of archive tag wordpress

I try to add link of tag archive in text that contain tag. For example:- if i have tag that name "football" and in single.php i display the content like "the_content();", So now when article have ...
0
votes
1answer
72 views

My posts section for logged in user

I would like to create a page that shows only posts written by the user logged in and get a link (such as www.example.com/AuthorPostsID) to put on the menu. I'm trying for two days. Does anyone know ...
0
votes
1answer
3k views

Rewrite url / permalink for default archive - yearly / monthly

I want to change the structure of yearly/monthly archive URL of default post type 'post'. As we know be default the URLs are like: Default: http://wwww.domain.com/2013/09 but want them rewritten, ...
0
votes
2answers
76 views

Wordpress archive posts returns user to homepage

I am trying to add archives to a sidebar in my wordpress blog. I use: <?php wp_get_archives('cat=1'); ?> to get display the archives. I now see on the screen the past few months when I have ...
0
votes
2answers
172 views

Is it possible to remove the word “date” from archives?

I can't figure out how to remove the word "date from the permalink for yearly archives. For example: [http://localhost/wordpress/news/date/2012] On single news pages the permalink looks like this: ...
4
votes
6answers
10k views

Force Wordpress to Show Pages Instead of Category

I am trying to create a SILO structure on one of my WordPress site. I have always checked this option on Yoast SEO plugin "Strip the category base (usually /category/) from the category URL." So my ...
4
votes
2answers
1k views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
1answer
241 views

Post archive pages bringing me to a 404 page

When I try to use next_posts_link() and previous_posts_link() in my archive posts page I got a 404 error page. I'm using this permalink setting /%category%/%postname% and working well for all pages ...
0
votes
1answer
3k views

Change permalink structure for pagination only

I am using following functions to display pagination on archive pages of my site. <?php previous_posts_link('< Previous', $loop->max_num_pages); ?> <?php next_posts_link('More >', $...
1
vote
0answers
81 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change this:...
0
votes
3answers
199 views

Custom post types not using archive structure

I've been banging my head against my iMac trying to figure out what's wrong. I've also trolled these archives and have tried the following things to fix: flush permalinks remove possibly conflicting ...
0
votes
1answer
755 views

How to get the month argument from permalink in wordpress?

I am working on a custom Wordpress template for the archive. I have the archive set up by category but now I want to organize by category and month but I can't figure out how to access the month ...
1
vote
0answers
218 views

Disable date based archives for all categories except one

I want to remove all date base archive url permalinks (url_rewrites) from my site, excluding for only 1 category. How can i do that. For example: www.example.com/category_1/2012/ -> 404 error ...
1
vote
1answer
4k views

Custom permalink for search and pagination

@Chip Bennet helped me out in a previous question and posted his entire pagination function. This function works perfectly fine for me but I'd like to have custom permalinks in german. /** * ...
0
votes
1answer
208 views

Permalinks not working on MU network with domain mapping

I'm using a theme with custom taxonomies. I want to use corresponding archives. If I try the template out on one network it works, and on another the permalink will take me to 404. The only difference ...
1
vote
0answers
55 views

Path to Pages Resolves to Archive instead of Actual Content

When I upgraded to 3.4.1, the root level pages (ones that I had before, and any page I have afterwards) do not resolve to the actual page. No matter the name (so i don't think there is a slug issue), ...
1
vote
1answer
116 views

permalinks issue and archives

I have an issue with a site running on WP 3.3 where when we make the permalink anything by "/%post_id%/%postname%/", the archive pages break and become 404s. After some research, I came to understand ...
8
votes
2answers
790 views

Permalink Structure for Multiple Post Type Archives by Taxonomy

Recently I have been working on an advanced WordPress project, and I'm stuck with changing permalink structure for custom post types. I have created 3 post types lets say: type1, type2, type3 and a ...
0
votes
3answers
2k views

Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard

I have a custom "about" post: function about_register() { $labels = array( 'name' => _x('About Page', 'post type general name'), 'singular_name' => _x('About ...
4
votes
1answer
3k views

Custom post types - Use post_id in permalink structure when using has_archive => true

I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain: ...
2
votes
3answers
425 views

Must permalinks always point to single post pages?

Suppose that I have a blog with few posts per month, and no comments, and I don't want to show posts in single post pages, but always "in context" (say, together with the posts in its month - or ...
5
votes
2answers
1k views

Archive permalinks

This site has been very helpful for me in learning how to rewrite permalinks using add_filters to solve issues we were having when we merged two blogs into one. But, I do have one item I have been ...
5
votes
4answers
5k views

Category archive by year with permalink support /category/YYYY

I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year. I am hoping to build a ...
5
votes
1answer
2k views

Custom Post Type Archives by Date with Custom Permalink

I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work. I've registered my 'press_release' CPT as following: add_action('init', 'press_release_post_type_init'); ...
1
vote
1answer
263 views

Date archive permalinks for custom taxonomy

Is it possible to have date based permalinks for a custom taxonomy? ie http://www.blah.com/taxonomy/taxonomy-term/2011/08/08 TIA! d.
0
votes
2answers
3k views

Custom Permalinks for Custom post Type Archives?

I know that WP 3.1 has added support for archives for custom post types but is there any way to customize the permalinks for them?