• Resolved nirurin

    (@nirurin)


    SO, I googled this issue a lot, and found out what the problem I was having -was-, and I even found what was meant to be a solution… but it doesn’t seem to work, and the solution was a couple years old so I don’t know if it’s now outdated.
    I am aware that (for some reason) BB formatting is not global. This means that if I make a POST with an accordian or a tabs section, and then have a seperate PAGE with a posts feed module, the POSTS all show in the feed… but only in plain text, and without the accordion/tabs formatting.

    The solution I found seemed to be :

    function my_global_builder_posts( $post_ids ) {
    $post_ids[] = ‘123’;
    $post_ids[] = ‘456’;
    $post_ids[] = ‘789’;
    return $post_ids;
    }
    add_filter( ‘fl_builder_global_posts’, ‘my_global_builder_posts’ );

    I changed the ID numbers to the ID of the POST, but nothing changed on the PAGE. I also tried using the PAGE ID (just in case) but that didn’t work either.

    I pasted the above code into my functions.php file on my child theme, which I assumed was correct.

    Am I missing something?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    Thanks for posting!

    The Post module only displays an excerpt of the page by default. The List layout offers an option to display the entire content though. Can you give that a shot and see if it’s what you’re looking for? ??

    Ben

    Thread Starter nirurin

    (@nirurin)

    Sorry no, I have already got it set up to show “entire content”, and it does show all the text content, but without any of the BB layouts.

    for example, I have a post that has an accordion section, so that that part of the post is hidden unless the reader clicks to expand the accordian. But when I then put the post list on a page and view it, that post shows the entire content, including the accordion content, as there is no longer an accordion being formatted.

    If I click on the post title to view the post on its own page, the accordion is there.

    Does that make sense? Hope so!

    Thread Starter nirurin

    (@nirurin)

    HI, Just bumping this as it has been 4 days without an update and the blog post feed is still not working …

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    Apologies for the delayed response here. It passed through the weekend where we have limited support.

    Actually took a peek at the code on our Posts module and it looks like it got changed at some point. Talked to our lead dev and he claims we’re not going to be rendering builder layouts on archives as it causes too much issues.

    It’s now only rendering content that’s on the native WP editor.

    Sorry we don’t have a better answer for you.

    Ben

    Thread Starter nirurin

    (@nirurin)

    Oh I see, so Beaver Builder can not actually display wordpress Posts, except on the front page in the default view?

    So there’s no way to have a custom feed of posts only showing specific categories, unless I only have plain text and no BB modules?

    That’s a severe disappointment… that’s basic core functionality with every other theme and builder for wordpress, and wordpress is designed as a blogging tool. Strange that BB doesn’t support it. You really should have that on your main page, as your documentation currently implies that all your BB modules and upgrades are compatible with WordPress, when they are actually only partially functional, and can not actually be used in any Posts.

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    Our lead dev provided the filter below which you can use to achieve what you want without making any modifications to the plugin files.

    add_action( 'fl_builder_posts_module_before_posts', function( $settings ) {
        add_filter( 'fl_builder_do_render_content', '__return_true', 999 );
    } );
    
    add_filter( 'fl_builder_posts_module_layout_path', function( $path ) {
        global $post;
        global $wp_the_query;
        $wp_the_query->post = $post;
        FLBuilder::enqueue_layout_styles_scripts_by_id( $post->ID );
        return $path;
    }, 10, 2  );
    
    add_action( 'fl_builder_posts_module_after_posts', function( $settings ) {
        global $wp_query;
        global $wp_the_query;
        $wp_the_query->post = $wp_query->post;
        remove_filter( 'fl_builder_do_render_content', '__return_true', 999 );
    } );

    Can you give it a shot and see if it’s what you’re looking for? ??

    Ben

    Thread Starter nirurin

    (@nirurin)

    Where should that code go? I had assumed function.php, but it seems to have no effect?

    I appreciate the Dev getting back to me with a solution though, it’s really nice of him ??

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    That would be correct! It goes to your child theme’s functions.php file. It works fine on my local environment(tried it before giving it to you).

    Which version of our plugin are you on?

    Ben

    Thread Starter nirurin

    (@nirurin)

    1.10.9.2

    Thread Starter nirurin

    (@nirurin)

    https://scrivlings.com/ = This shows what the test post should look like

    https://scrivlings.com/homepage/ = this is what the post gets formatted as when it’s in a “post feed” module on a built page.

    I’ve changed to the basic 2017 theme in case there was some other conflict, and have nothing else running except the basic BB plugins, but it doesn’t seem to have made a difference.

    • This reply was modified 7 years, 4 months ago by nirurin.
    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    Those filters are only present on our core Posts module. It looks like you’re using a UABB module on that page. That would explain why it’s not working. ??

    Can you try replacing it with our core Posts module and check?

    Ben

    Thread Starter nirurin

    (@nirurin)

    Is that the Posts module in the Advanced section? Sorry I thought I’d used the default posts option, I’ll try changing it now.

    Thread Starter nirurin

    (@nirurin)

    I got a friend of mine who also uses BB to log in and do a fresh install for me, just to make sure I’m not missing something obvious. Currently it’s set up with the module named “Posts” and it’s set to show full content. The pages don’t seem to have changed at all though.

    Thread Starter nirurin

    (@nirurin)

    Update: My friend tested your code on his own website and did a test page, and it actually worked for him… The only reason he can think of is that he is using the Beaver Builder Theme, is that likely to be causing the problem?

    But yeh, it does seem like that code works fine, but it seems to not work on certain themes maybe?

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @nirurin,

    Those filters are only present on our plugin so the theme shouldn’t matter. To test, I switched to the default Twenty Seventeen theme and it still worked there.

    Can you send us a note via hello [at] wpbeaverbuilder [dot] com with a link to this thread and we’ll take it from there? ??

    Ben

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘BB formatting not loading in post feed’ is closed to new replies.