• Resolved Peter Wooster

    (@pkwooster)


    A shortcode that I’m certain is used on most of the pages on the site I’m working on doesn’t appear in the list of used shortcodes. I determined that is cause is that the content was added using Divi and the et_body_layout post type is not public. This is similar the the problem describe for Bakery.

    Is there a way to turn on searching non-public posts (configuration or code).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Peter Wooster

    (@pkwooster)

    The problem is lines 186 and 199 in shortcodes-finder-admin-display. This restricts the display to shortcodes in public post type posts. Removing the ‘public’ => ‘true’ criteria fixes the problem for Divi and probably other page builders. In Divi these posts contain author supplied content provided in the Template Builder and can contain shortcodes.

    I’m not marking this as resolved since it needs an update to the plugin. Either make this an option or just remove the ‘public’ => ‘true’.

    Plugin Author Scribit

    (@scribit)

    Hi @pkwooster and thanks for your topic.

    Let me make some tests on that and I will let you know.

    Plugin Author Scribit

    (@scribit)

    @pkwooster can you tell me how to create a et_body_layout?post? Where is it in Divi builder?

    Thanks

    Thread Starter Peter Wooster

    (@pkwooster)

    I’m a backend developer, so not much more familiar than you are about using Divi. What got me interested in this was when shortcodes I wrote were not being found. I’ve asked my client to walk me through how to build a Divi template and I’ll forward it to you. What i do know is:

    • open Divi Theme builder
    • open Global Body Template (second on left)
    • use the gear icon to get the editor.

    Divi is very complex. Here’s the Elegant Themes documentation on this. https://www.elegantthemes.com/documentation/divi/the-divi-theme-builder/

    I suspect any Divi template part will have the same problem and that this probably applies to any page or site builder that relies on custom post types to store its template parts.

    Plugin Author Scribit

    (@scribit)

    Hi,

    Try the new 1.6.0 version with some good improvements. Now you can search also in private custom post types, like Divi templates.

    For the future: remember that, in multisite environment, to find a shortcode in all multisite network you have to activate the plugin source also on main site.

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