Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
0
votes
0answers
21 views

Set archive of custom post type like 'posts' page in reading settings is set

I'm starting development on a WordPress site soon. For a specific post type, they want the archive to be part of the page structure. For the default post type, you can set the archive to a static ...
0
votes
0answers
16 views

Custom Post Type WP_Query with filters and search

I have a custom post type called "doctor", this is the query I have set for displaying all the posts in the archive template: $args = array( 'post_type' => 'doctor', 'orderby' =...
0
votes
0answers
12 views

Routing for a post type archive with custom taxonomy as a url parameter

Essentially, I have a custom post type product and it uses a taxonomy product-categories. I currently have my routing configured to use the top level category as part of a product url, e.g products/...
-1
votes
1answer
22 views

%20 in URL in archive page shows error 404 on page [closed]

I have made a custom archive page, so the page is working for single words like - National Category. For this the archive page works as it should be but when it comes to two words like - Economy and ...
3
votes
2answers
96 views

Is it possible to remove the posts_per_page limit on a specific post type?

I'd like to know if I can remove the limit on the posts_per_page for a specific post type. In the archive.php page I'm displaying different post type, and for the specific "publications" post type I ...
0
votes
0answers
11 views

Custom taxonomy for custom post type permalink and archive page

I have 3 custom post type which all have custom a define taxonomy. For example for the first post type publications i have the custom taxonomy publications_types. The URL structure is thus as ...
0
votes
0answers
11 views

How Can Create Separate Tender Archive Section and Current Tender Section in WordPress

I'm trying to create a WordPress Archive section for Tender, and I'm having a little difficulty with creating an easily accessible archives page. How Can Create separate Tender Archive Section and ...
0
votes
1answer
12 views

Building Link List for Custom Tax

Just wanted to get an opinion, or ideas. I have an CPT called "Listings", and a custom taxonomy for it called directory-category. I have put together the below function to generate a list of links ...
1
vote
1answer
34 views

Ordering Posts Type A by Custom Fields of related Post Type B

I'm not sure if this is even possible (also posted to ACF forum https://support.advancedcustomfields.com/forums/topic/ordering-by-custom-field-of-relationship-field-object/#post-62454) I have two ...
0
votes
0answers
43 views

Custom Taxonomy On click filtering on Custom post type Archive

My need is to create an onclick filter on a custom Post type called "Recipes" with the Custom taxonomy "recipe_category" created with ACF in the theme I've buyed. This is my archive.php code: <?...
4
votes
1answer
62 views

pre_get_posts with tax_query causes empty result

I need to adjust the main loop for all archive pages in the following way. I have registered a custom taxonomy "myposttypes". Every single post is assigned to exactly one term of "myposttypes". If it ...
0
votes
1answer
23 views

Custom taxonomy with custom post type archive page

I created a sustom taxonomy and a custom post type via Metabox plugin. I am able to create custom post type posts and assign them to the custom taxonomies. But when I am trying to list them on an ...
0
votes
0answers
14 views

Author Archive Page just Show Default Post, not my CPT created using Pods Framework

I had a little problem when I created the archive page for the Author to show my CPTs and Default Post created using Pods Framework on a page, at a time. I made some CPTs called "Literature" and "...
1
vote
1answer
248 views

How to rewrite slug of custom post type archive page

I have a CPT called "case-studies" and the slug of the archive page of this cpt is www.my-domain.com/case-studies and the slug of the ctp posts is www.my-domain.com/case-studies/case-study-name. Now, ...
0
votes
0answers
20 views

Page under post type archive

I've been trying to figure this out for a long time and haven't found anything online to help achieve this. Say I have a custom post type "event" with an archive of "/our-events". Each single event ...
0
votes
0answers
140 views

Remove prefix from archive titles for: category, tag, author, date, custom post

I'm at the beginning of my template journey and appreciate this community so much! I'm removing the title prefixes from my archive pages and I've looked at several answers including: Remove "...
0
votes
0answers
20 views

How to create multiple parameter archive pages (i.e. something like /$post_type/$taxonomy/$term/)?

Basically, I have three custom post types: videos, news, & reports and a couple custom taxonomies: region & blog — that I'd like to create "sub-archives" for, using the following structure: /$...
0
votes
1answer
57 views

Custom post pagination not working

I have a big problem with my custom post pagination on home.php page. It shows the first 4 post but when I go to the second page I get a page with only the header and footer but no news content and no ...
0
votes
0answers
21 views

How to display value of custom fields on schema on taxonomy archive

I am trying to display the code <meta itemprop="name" content="<?php woocommerce_page_title(); ?>"> <meta itemprop="ratingValue" content="<?php echo get_post_meta( get_the_ID(), '...
2
votes
1answer
83 views

How to remove current year from wp_get_archives

Does anyone know how to exclude the current year from $args = array( 'limit' => '', 'format' => 'html', 'before' => '', 'after' => '', '...
0
votes
0answers
25 views

Custom Post Type / Taxonomy / Term - what template to use to avoid 404-page?

I'm working on a site and am using Custom Post Types, Custom Taxonomies and Custom Terms for the first time. All goes well until I click a custom term. What I'd like to happen is get a page listing ...
0
votes
0answers
30 views

Sort by custom field in archive.php with Ajax

how can I sort custom post types by custom field value with ajax. There should be options "Newest" and "Oldest".
0
votes
1answer
16 views

Custom Post Archive - display page 1 differently then subsequent pages

I have a custom post archive listing of publications. The template generally works fine, but I'm trying to display the excerpt (actually a custom field called Abstract) for just the most recent ...
1
vote
0answers
105 views

Single post with a Custom Post Type returns 404, when archives of the CPT work correctly

I have created a custom post type called "medya" with the codes below: <?php function create_posttype() { register_post_type( 'medya', array( 'labels' => ...
0
votes
0answers
23 views

Unsure what page hierarchy to use with CPT UI to show on front end

I created a custom post type using the CPT UI plugin and chose to add Categories as well. In my menu structure I have a second level item which is a category and a third level item which is the actual ...
1
vote
1answer
35 views

CPT archive admin menu label

I'm using the following code in order to make a cpt: function midas_team_post() { register_post_type( 'midas-team', array( 'labels' => array( 'name' => 'تیم میداس', ...
0
votes
1answer
121 views

Create search box on Archive Custom post type

I'm trying to create a search box on an archive page which shows on Custom post type. I've followed this guide to implement the search box on the archive page: http://wpsnipp.com/index.php/...
1
vote
0answers
25 views

Number of Custom Post Types published are not being shown in the custom page

NOTE: If you're new to this question, it is already solved you just need to add the 'posts+per_page' parameter in the new WP_Query array... I wonder why they(stackoverflow developers) do not give ...
0
votes
2answers
22 views

I created a normal page, but the page displays as an archive page

I have created a normal page called "Clients," which should display the logos of my customers. But the page displays as an archive page. The page I'm talking about is http://zedwrites.com/clients/ ...
3
votes
1answer
81 views

Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?

I currently have a setup where I have a custom taxonomy that is link to the Wordpress post post type and another custom post type. Since the custom taxonomy is assigned to the two post types ...
0
votes
0answers
19 views

My custom plugin blocks access to the image gallery

I am a beginner in Wordpress development and I am currently creating an extension that will allow me to post articles from a post type. I said that I duplicated the code to make two plugins but my ...
0
votes
1answer
100 views

Custom Post type date archive for custom taxonomy

Hello WP StackExchange, I picked up and it deals with Custom Post Type archives. So we have a CPT called Resources. Under Resources we have a custom taxonomy called Resource Types. For Resource ...
0
votes
0answers
156 views

Custom Post Type archive link in WYSIWYG editor

I would like to add a link in the WYSIWYG editor to the archive page for a custom post type. I have a custom post type case-studies and would like to add a link to the archive page in the tinyMCE ...
0
votes
1answer
311 views

Change number of posts to show on Archive page (custom post type)

I've created a custom post type, and I've created an archive page to show them on this page. The number of posts shown by default is 10 but I'd like to reduce the posts' number to 6. I use this ...
1
vote
1answer
148 views

is_main_query() not working for WP REST API

My initial situation is, that I have a custom post type events which are - who would have thought - events. There is a custom UI (backend) where the user can enter multiple dates. Each date is then ...
0
votes
0answers
23 views

Custom Taxonomy displays Posts page instead of displaying specific archive

I have two custom post types and custom taxonomies in my WordPress installation. The first type and taxonomy are for videos; here I'll call them test_video and video_series. The second type and ...
0
votes
0answers
134 views

Category Archive Loop for Custom Post Types and Custom Taxonomies

I am trying to build a template for my own blog with Genesis Framework. The last piece which I have spent biggest portion of time with is sorting out category archive page ( example.com/category/...
1
vote
1answer
75 views

Set up Custom-Post-Type Author Archive

I’ve set up a custom-post-type on a site for jobs, and this all works fine. When I click on the author (my name) on the Custom Post Type though it goes to the archive.php file (as you can see in the ...
0
votes
0answers
268 views

Ajax Post Filter Tutorial with one taxonomy : How to get multiple taxonomies?

I'm new on this website, I already used a lot of info on Magento stackexchange by the past, but now I'm working on worpdress :) Pretty easier than Magento, but still hards sometimes, maybe because I'...
0
votes
0answers
253 views

Display custom taxonomy child terms with category image on parent term archive

I have a CPT with a custom taxonomy called 'equipment_cat'. I'm currently displaying the subcategories of a category on the category archive using the following code: <?php $term = get_term_by( '...
0
votes
0answers
48 views

CountUp timer for custom post

I have count up timer for my custom post. Each post is with different date to count up from , but the javascript currently is taking one date and all posts are counting up from same date. Here is link ...
0
votes
2answers
280 views

Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far

I've been trying to change the number of posts that is displayed on my CPT movie-review archive page and I've tried about 20 - 30 different variations (and even a few plugins), but no luck. It is ...
0
votes
1answer
366 views

Custom post type search with slug in URL

I have a site which has 6 custom post types, each one has a search function to only search in that particular post type. The search works as expected and displays the search results. Each custom ...
0
votes
2answers
352 views

Show categories of custom post type and not all posts

I have this page on my website - It's a custom taxonomy template for a custom post type called Directory Entries with a taxonomy called directory_entry_type which is what's being pulled in here. ...
0
votes
2answers
403 views

Only show categories that have posts within custom post type

My custom post type & built in Wordpress blog posts SHARE the built in categories. I have a piece of code that loops through and shows all (built in) categories that have posts assigned to them ...
1
vote
2answers
676 views

Check if is post type archive and in category

I'm trying to adjust a function that checks if the site visitor is on a post type archive and returns a certain layout. I need it to also check to see if it is in certain categories (using regular WP ...
0
votes
2answers
30 views

get_permalink() of page the enclosing page not posts

I have spent the last hour googling and trying different methods but nothing works the way I want it to. Within the loop of the posts, I need to get the permalink of the main page. Example You ...
0
votes
1answer
140 views

URL Rewrite and Archive Template Files - Post Type vs. Taxonomy

I apologize if this is a difficult question to understand, but really it's a template hierarchy / rewrites question. I have set up a few rewrite rules that are successful, but I'm hoping that I can ...
0
votes
1answer
250 views

Remove plugin's custom post type archive page and single pages [closed]

The Problem Hi I am using the plugin: "Process Steps Template Designer", I am using the shortcode to add the vertical process (sort of timeline) to my page, the problem is the text get's cut off ...
0
votes
0answers
87 views

Loop in my archive.php doesn't work for custom taxonomies

My archive.php template works well with normal categories and tags, but it doesn't work with my custom taxonomies. It just skip the loop and go directly to else, showing get_template_part( 'content', '...