-
AuthorPosts
-
August 21, 2015 at 1:10 am #491131
Hi guys, sorry, but couldn’t find the answer to this…..how do add the latest blog post summaries to the enfold footers…
August 21, 2015 at 1:51 pm #491387Hi jnrdavo!
Please go to Appearance > Widgets and add Enfold latest news widget to one of your footer columns :)
Best regards,
YigitAugust 21, 2015 at 11:14 pm #491631thanks for that Yigit.
I had that up before, but it’s showing the first blog entries at the top of the list (ie, the earliest ones), when I need to show the ‘latest’ blog entries at the top of the list..
Any ideas how to flip this?
August 24, 2015 at 3:03 pm #492250Hey!
Please go to Enfold/framework/php file and open class-framework-widgets.php file and change line 425 into
$additional_loop = new WP_Query("cat=".$cat."&posts_per_page=".$count."&orderby=post_date&order=desc");
Best regards,
YigitAugust 25, 2015 at 11:19 pm #493248thanks for that, but when I change the code, I get the following error on the home page now:
Parse error: syntax error, unexpected ‘$additional_loop’ (T_VARIABLE), expecting function (T_FUNCTION) in /home/XXXX/public_html/V4/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 425
August 25, 2015 at 11:31 pm #493249sorry, I must have typed it in wrong. No code errors now, but the blog is still showing the oldest at the top of the list..
August 25, 2015 at 11:31 pm #493250actually, on looking at this, the ‘popular’ was the first option selected. Can I change the ‘default’ selection to ‘recent’?
August 26, 2015 at 11:41 am #493451Hey!
Look for this code around line 934:
echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>'; echo "<div class='tab_content active_tab_content'>"; avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts); echo "</div>"; echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>'; echo "<div class='tab_content'>";
Replace it with:
echo '<div class="tab first_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>'; echo "<div class='tab_content'>"; avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts); echo "</div>"; echo '<div class="tab active_tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>'; echo "<div class='tab_content active_tab_content'>";
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.