-
AuthorPosts
-
March 13, 2014 at 10:35 am #236797
Hi there,
I would like to use one of your shortcodes a bit differently than the use it was built for.
On my homepage, I’m using the shortcode (through Avia builder) that displays the lastest blog posts of a specified category. I would like to change that property, to display all the blog posts marked as Featured (in order to display posts from different categories all together).
To do this, I’ve installed a plugin called Featured Posts (https://wordpress.org/plugins/featured-post/) and all I need to do is adding a line of code to one of the Enfold theme files. But I can’t find where it has to be pasted!
Could you help me please?
Thanks a lot :)
Robin
March 14, 2014 at 3:01 am #237337Hey Binro89!
What is the code you’re trying to add? You can edit config-templatebuilder > avia-shortcodes > blog.php. Please contact the plugin author.
Cheers!
IsmaelMarch 14, 2014 at 9:41 am #237483Thanks for your answer Ismael :)
Actually, the plugin documentation says this:
“Add <?php query_posts($query_string.”&featured=yes”); ?> before the post loop starts and manage the featured posts from the post edit list.”Is it changing something to your reply? Or do I have to edit the file you mentioned?
Cheers!
Robin.
March 17, 2014 at 10:05 am #238581Hi!
Ismaels answer is correct if you use the “Blog” element to display the blog posts inside your advanced layout. You need to replace:
ob_start(); //start buffering the output instead of echoing it
with
ob_start(); //start buffering the output instead of echoing it query_posts($query_string.”&featured=yes”);
Best regards,
PeterMarch 18, 2014 at 11:37 am #239297Hi there,
Thanks for your reply. I’ve added the code as you told me, and after one or two syntax error (my fault), the website is working again.
But the “Featured filter” for the “Blog element” doesn’t seem to work. Only the posts from a specified category are displayed (the category which is specified in the visual builder), while I would like to display posts from different categories all together. It’s like if this new function could filter amongst the specified category, but not amongst all the blog posts ever created…
Any other idea to solve this problem?
Thanks in advance :)
Regards,
Robin.March 21, 2014 at 11:40 am #241107Hi there,
Actually, the “Featured function” just doesn’t work for me :(
If I select a particular category to be displayed on HP in the Blog element, this category is well displayed. But if I only “feature” 3 articles amongst this category, these articles are not displayed, since it’s only the 3 most recent which appear on HP…
So I guess the code line is not working, or is not placed where it should be. Can you help me with it? Or do I need to call another developer?
Thank you in advance guys :)
Robin.
March 25, 2014 at 9:43 am #242595Hey!
In this case please hire a freelance developer. I’m not familiar with the “featured post” plugin and I’m not sure why the code doesn’t work. I recommend to search for a freelancer here: http://www.microlancer.com/ or contact werkpress here: http://kriesi.at/contact/customization
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.