Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #237337

    Hey 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!
    Ismael

    #237483

    Thanks 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.

    #238581

    Hi!

    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,
    Peter

    #239297

    Hi 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.

    #241107

    Hi 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.

    #242595

    Hey!

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.