-
AuthorPosts
-
August 21, 2015 at 2:01 am #491135
I am using the blog widget to show all posts in a particular category (the MEMBERS). It’s also pulling in a PAGE that has the word “Members” in the name and slug. Maybe there is a coding error and the widget is not checking if things are posts or pages? Will this bug be fixed soon (we are launching in 2 weeks)? Is there an easy workaround for it? I don’t want to have to create a child theme and change code.
I also want to customize the display more than the blog widget allows me to. For example to remove the metadata for comments and date and have the excerpt move up into that space, change the font size, and display the posts alphabetically by title on just that specific page. How can I do this?
- This topic was modified 9 years, 4 months ago by mikehartrich.
August 24, 2015 at 3:14 am #491986Hey mikehartrich!
Thank you for using Enfold.
The blog post element should only display posts and exclude pages or other post types. Please post the login details here so that we can check it.
Best regards,
IsmaelAugust 24, 2015 at 8:41 am #492050Yeah, it definitely was showing a page. We are in the process of working on this site to get it launched, so this page may change very soon. But for now it’s still showing up the Member’s Directory page as the first item in the grid.
August 25, 2015 at 6:04 am #492618Hi!
Are you planning to use the blog post element on different post types? If not, we added a temporary fix in the functions.php file:
add_filter('avia_post_slide_query','avia_change_grid_order', 10, 2); function avia_change_grid_order($query, $params) { $query['post_type'] = array('post'); return $query; }
Regards,
IsmaelAugust 28, 2015 at 7:12 am #494650Hi Ismael, no we only have the default blog post type. Do I need to update Enfold? I don’t see any updates available. If you added that to our functions.php file, will it be overwritten when there is an update, or will you add that fix to the update also?
I just created a portfolio page with the Magazine blog layout for that same category and the same “Member Directory” page is showing up there. So maybe the fix is not working?
August 29, 2015 at 9:23 am #495248Hey!
The code above will modify the blog grid query so it will not work for the magazine element. Add this one to exclude pages on the magazine element:
add_filter('avf_magazine_entries_query','avf_magazine_entries_query_mod', 10, 2); function avf_magazine_entries_query_mod($query, $params) { $query['post_type'] = array('post'); return $query; }
This is not going to be included on the next update because this issue is not happening on most installations. It’s probable that a third party plugin is causing this issue.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.