Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1020484

    Hello,

    I see this entry on one of your demo. you might also like entry
    I can not finde out how you do that. Can I do that with the advanced editor ? I also like to have such a “you might also like” on a single blog page.
    Thanks a lot for you help.

    Kind regards
    Roger

    • This topic was modified 6 years, 1 month ago by Roger.
    #1021272

    Hey Roger,
    Sorry for the late reply, I assume you are referring to this element:
    2018-10-14-125736
    Unfortunately these are added when using the default editor, and not the advanced layout builder. If you would like to add this type of function to advanced layout builder pages then you could try using a plugin that has shortcodes, and add the shortcode to a code block element on your page.

    Best regards,
    Mike

    #1022343

    hi mike

    Thanks for answer. can you recomment such a plugin ? on a other page i use jetpack. But i dont wanna use this one.

    Thanks for your help.
    kind regards
    roger

    #1022576

    Hi,
    Here is a nice list: 9 Of The Best Related Post Plugins
    Another option, I see that you only have a few post on your site, so if every page is going to have the same list of related posts we can copy your element from a default editor page and add it to your advanced layout builder page. This would keep the Enfold style.
    Probably not what you had in mind, but I thought I would offer.

    Best regards,
    Mike

    #1022580

    Hi mike

    thanks for aswer. yes, if you could do that ( advanced layout builder page ). so than i have a example. actually my site still build up. i will copy my posts from my other travel blog into this new wesite when i finish with customization. is it possible just show up just 4 related post ? ( not 6 ) . Not sure if I understand, but I am not going to have always the same related post. there should be always diffrent related post on every blog-post i will do. thanks

    kind regards
    roger

    #1022767

    Hi,
    What I meant was right now you don’t have very many posts, but I understand now that you have a lot of content to add.
    As an example, I copied your related post element from one of your pages, you can paste the code in the file that is in the Private Content area, into a “code block” on your advanced layout builder page and it will show 4 related posts. Probably not a long term solution because it’s manual html.

    Best regards,
    Mike

    #1022988

    Hi mike
    Thanks that looks good for me.

    Kind regards
    roger

    #1023060

    Hi,
    Glad to hear, I assume we can close this now, but I want to ask anyways :)
    Shall we close this?

    Best regards,
    Mike

    #1023168

    Hi,
    *update*
    I have been trying to figure out how to add the related posts to the advanced layout builder pages and I came up with a shortcode that works, Try adding this code to the end of your functions.php file in Appearance > Editor:

    
        function related_posts_shortcode( $attr ) {
            ob_start();
            get_template_part( 'includes/related-posts' );
            return ob_get_clean();
        }
        add_shortcode( 'rpost', 'related_posts_shortcode' );

    and then add this code in a “code block” element to display the related posts element:

    [rpost]

    Also be sure that your page shares tags with other posts, as this is what the element uses to get the other posts.

    Best regards,
    Mike

    #1023562

    Hi Mike
    Thanks a lot. That works great. Super .

    Kind regards
    Roger

    #1023724

    Hi,
    Glad to have this sorted out, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Single Blog-Page "you might also like"’ is closed to new replies.