- This topic has 11 replies, 3 voices, and was last updated 3 years, 5 months ago by Tom.
-
AuthorPosts
-
November 3, 2020 at 9:40 am #1516519Mieke
After updating GeneratePress from 2.4.2 to 3, the headers <header class = “entry-header”> disappears in pages with the post loop of Page Builder by SiteOrigin. I have problems with this on several sites.
Is this a known issue? How can I fix this?I have GP Premium: 1.12.2 with theme: 3.0.2
November 3, 2020 at 10:52 am #1516602LeoStaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know π
November 4, 2020 at 4:16 am #1517452MiekeHi Leo,
Thanks for your reply. I made a copy of one of the sites where this problem happens. See private information for site url and your login.November 4, 2020 at 1:10 pm #1518242TomLead DeveloperLead DeveloperHi there,
Our post meta isn’t set up to display on pages by default.
You could try doing this:
add_filter( 'generate_entry_meta_post_types', function( $types ) { if ( is_front_page() ) { $types[] = 'page'; } return $types; } ); add_filter( 'generate_footer_meta_post_types', function( $types ) { if ( is_front_page() ) { $types[] = 'page'; } return $types; } );
Let me know π
November 5, 2020 at 2:25 am #1518698MiekeThanks for the add_filters code. it partly solves my question, now I have in the post loop meta in header (date) and footer (categories), but still no entry-title.
I can’t find a filter to show the entry-title in the post loop.What did change from GP 2.4.2 to 3? The post loop has different problems on several sites.
November 5, 2020 at 9:21 am #1519414TomLead DeveloperLead DeveloperI just altered the code above to handle titles as well: https://generatepress.com/forums/topic/post-loop-by-siteorigin-header-of-posts-dissapears-after-update-gp-to-3/#post-1518242
A lot changed in 3.0 when it comes to post meta and titles – this will allow us more flexibility for options in the pro version. In this case, a third-party plugin is being used to display our post loop on a static page, which the theme wasn’t built to do/isn’t aware of. That’s why we have these functions to make things more flexible if needed π
November 6, 2020 at 12:18 am #1520030MiekeThanks for the new code. I added the extra code but unfortunately no title has been added in the post loop yet. Any more ideas?
November 6, 2020 at 9:08 am #1520800TomLead DeveloperLead DeveloperHmm strange, can you try the updated code?: https://generatepress.com/forums/topic/post-loop-by-siteorigin-header-of-posts-dissapears-after-update-gp-to-3/#post-1518242
November 6, 2020 at 9:24 am #1520825MiekeStill not working…
I previously sent you login details bij Private information. You’re welcome to take a look yourself.November 6, 2020 at 1:01 pm #1521048TomLead DeveloperLead DeveloperIt looks like you’ve set the template in the widget to
content-link.php
. What happens if you usecontent.php
?November 9, 2020 at 3:14 am #1523550MiekeAs it is often the case, the solution was so close that I did not see it. On the homepage I had checked that the entry title should not be shown. As a result, the title was not shown in the post loop either. By unchecking this option, the titles are shown again in the post loop. I addded some css to hide the main entry title. That was all!
(but still, in GP 2.4.2 this worked differently)Thanks for thinking along. Solved!
November 9, 2020 at 9:50 am #1524253TomLead DeveloperLead DeveloperGlad you got it working π
-
AuthorPosts
- You must be logged in to reply to this topic.