- This topic has 7 replies, 2 voices, and was last updated 4 months, 2 weeks ago by
Tom.
-
AuthorPosts
-
October 16, 2020 at 4:35 am #1491750
Paul
Hi,
I’ve created a CPT using the Post Types Unlimited plugin. This has a taxonomy called Section, and a post type called Article.
Following the guide here:
https://generatepress.com/forums/topic/create-custom-category-php-template-wp-show-posts-wpsp/#post-1491733I have the Taxonomy page using a basic WPSP list:
https://style960.com/sites/nerccu/section/education/On that page, the Header element assigned isn’t displayed. And it also seems to be using a right sidebar layout. I’ve tried removing
generate_construct_sidebars();
from my taxonomy-section.php file but the sidebar area remains. I’ve also tried creating a Layout element with content(no sidebars) but that doesn’t make a difference either.How can I get the Header and Layout elements to apply?
They do apply on an Article page:
https://style960.com/sites/nerccu/article/cma-law/Excuse the slight look of disrepair the site is in, I’m trying to nail down the functionality first.
I may need more help to display related posts on individual articles as they don’t display either but I’ll raise a seperate request for that.
Thanks,
Paul.October 16, 2020 at 10:01 am #1492316Tom
Lead DeveloperLead DeveloperHi there,
Can you show us a screenshot of your Display Rules for both the Layout and Header Elements?
Let us know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 17, 2020 at 2:07 am #1492871Paul
Yeah sure…
https://style960.com/sites/nerccu/element-section-header.JPG
https://style960.com/sites/nerccu/element-article-header.JPGThe article header applies, the section header does not.
Thanks,
Paul.October 17, 2020 at 11:28 am #1493518Tom
Lead DeveloperLead DeveloperIs there an Article Section Archive option in Display Rules? Right now it looks like it’s only set the About page and single posts inside the Article Section taxonomy.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 18, 2020 at 10:29 am #1494550Paul
No, under the Articles subheader for display rules I have ‘Article’ and ‘Article Section’.
October 18, 2020 at 12:27 pm #1494703Tom
Lead DeveloperLead DeveloperThere’s nothing for the Archives? Perhaps somewhere else in the list?
Is the taxonomy/post type set to allow archives?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2020 at 2:29 am #1495192Paul
I hadn’t enabled the ‘has archive’ option on the CPT. All working now, thanks for your help.
October 19, 2020 at 9:43 am #1495865Tom
Lead DeveloperLead DeveloperAwesome, glad I could help π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.