Support » Plugin: Page-list » Divi Theme show_content not working

  • I have [pagelist_ext show_first_image=”1″ image_width=”250″ ┬áimage_height=”188″ show_content=”1″] in a Divi text module on a parent page. The content for each subpage is not showing. The image and title is displayed, and columns also work.
    I put a previous post about this, the question was asked where does Divi store the page content. Its in the _posts table, post_content column.
    If I set strip_shortcodes=”0″, the content is delivered including divi shortcodes.
    All Divi content in a text module is within a shortcode: [et_pb_text] … [/et_pb_text]. So I am now assuming that all shortcodes and their content are stripped, hence no content.
    Is there a solution to this please?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same problem, with Avada theme.

    I think the problem is how the pagelist_unqprfx_parse_content function processes the content.
    It uses the strip_shortcodes function which seems to do a little too much cleaning.
    Add the fact that with heavy themes like Avada and Divi, shortcodes are sometimes not that short, you end up with either no content (strip_shortodes = 1) or mangled content (strip_shortcodes = 0).

    An unsatisfactory solution is to change the code in page-list.php, line 339 : $text_content = $page->post_excerpt; to $text_content = do_shortcode($page->post_excerpt);
    (your mileage may vary).
    That way, the shortcodes are executed before the page-list do its trimming and all.

    @webvitalii
    Any idea about the problem we face with our shortcode-heavy themes ?

    Plugin Author webvitalii

    (@webvitaly)

    Hi @hardesfred

    It is a bit tricky to find a solution here that will satisfy everyone. I think in the case of Divi theme it is simpler to just update the plugin as per your needs.
    I will think about the permanent solution meantime.

    Thanks for looking into it !

    Hello again.
    I had to deal with another site with the same problem, and I came to the conclusion that this is not fixable due to the way shortcodes work. Your plugin is not to blame.

    The only solution for me was to enable excerpt support for the pages using the filter add_post_type_support('page', 'excerpt');
    and define the content of said excerpts.

    This way, the plugin displays only what we tell it to display (the excerpt), without having to deal with the actual content of the page and the shortcodes it may (or may not) contain.

    Cheers.

    • This reply was modified 5 months, 1 week ago by hardesfred. Reason: correction on the code tag
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.