- This topic has 8 replies, 3 voices, and was last updated 3 years, 5 months ago by
Fernando.
-
AuthorPosts
-
November 18, 2022 at 9:50 pm #2422453
Jasdeep
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=0I can provide the logins if necesary.
November 19, 2022 at 5:59 am #2422800David
StaffCustomer SupportHi 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 ?
November 19, 2022 at 7:17 am #2422899Jasdeep
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
November 20, 2022 at 5:03 am #2423890David
StaffCustomer SupportCan i see the site ? Specifically the archive where the issue is ?
November 21, 2022 at 1:31 pm #2426215Jasdeep
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.
November 21, 2022 at 5:58 pm #2426421Fernando Customer Support
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/Qwuj6v44Can you try rebuilding your Content Template Structure?
November 21, 2022 at 8:42 pm #2426529Jasdeep
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?
November 21, 2022 at 8:48 pm #2426537Jasdeep
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! <3November 21, 2022 at 8:53 pm #2426543Fernando Customer Support
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!
-
AuthorPosts
- You must be logged in to reply to this topic.