Archived topic
Custom taxonomy Pages not showing
8 replies · Started by Jasdeep on November 18, 2022
Hi,
I have been trying to use a custom post type and trying to list post as archive.
However, when using the element the posts show as blank, the html do not contains anything inside.
My posts are set to true for has_archive.
I have read all your forums regarding custom post or custom taxonomy archive templates but nothing seems to work for me.
I hope someone can look into this.
I am attaching the screenshots below for you to have a better idea and see if anything is wrong.
https://www.dropbox.com/sh/bj7n10r1uemveoe/AAADbFHsfUdVCm721kM4Z2jDa?dl=0
I can provide the logins if necesary.
Hi there,
if you edit your Content Template, and just add a line of static text in paragraph block as the very first block ( outside of any Container Block ) , does that display ?
Hi David,
Yes the text line is being displayed twice, since I have 2 posts.
So, what am I doing wrong with displaying the posts?
JS
Can i see the site ? Specifically the archive where the issue is ?
Hi David,
Sure you can have a look at the site.
Here are the pages, where I am trying to lists posts from various categories/taxonomies, but they are only listing blank html structure and not the actual content of the posts/custom posts types.
1. https://www.gurbanisangeet.com/category/gurbani-raags/ [ using default wordpress posts ]
2. https://www.gurbanisangeet.com/tabla_courses/kaida-and-palta/ [ using custom post type tabla-lesson ]
In the back-end you will see, I am using two different GeneratePress Elements to accomplish the above page layouts.
1. 'Global Posts ARCHIVES' - for default posts under default wordpress categories.
&
2. 'Custom Posts Taxonomy ARCHIVES' - for custom post types unedr taxonomy named 'tabla_courses'
I am also sending you the wp-admin access to have a look at the template files via theme editor and the elements.
Hi Jasdeep,
I tried setting the Test Headline to a Dynamic Title, and it worked.
See: https://share.getcloudapp.com/o0u94bZe
Also see: https://share.getcloudapp.com/Qwuj6v44
Can you try rebuilding your Content Template Structure?
Hi Fernando,
Thanks for the reply.
Yes I re-built the template and it is now working, strange!!
Any idea, whey the current template was not working..?
I have another query, please see this image : https://www.dropbox.com/s/i34zxwpfjqadgfe/tabla_listing.jpg?dl=0
How can I display my custom posts in columns for my custom post listing?
Hey!
Never mind, I found this solution to add into functions.php
add_filter( 'generate_blog_columns', function( $columns ) {
if ( 'cpt-slug' === get_post_type() && ! is_singular() ) {
return true;
}
return $columns;
} );
That did the trick!
Your support forums are awesome! <3
It could have been a database issue. Sometimes, when saving and something goes wrong(like an unstable internet connection), an issue may occur in the saving process. Not entirely sure, however, but this is one potential cause.
I see. Glad you found the solution!
You're welcome Jasdeep!