• Resolved bhomatude

    (@bhomatude)


    I am using wordpress to define the products page and then dropping in the appropriate shortcode into that page:

    [it-exchange-page page='store']

    I also had some additional content above the products stream (some text and an image) introducing the products page (which is why I had to have wordpress define it).

    When implementing your custom loop on that page however, the option to display that additional content above the shortcode disappears. Any way of getting that back?

    thanks.

    https://ww.wp.xz.cn/plugins/exchange-addon-custom-loop/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ronaldvw

    (@ronaldvw)

    Hi,

    the custom loop addon will take over the entire loop, and essentially disregards the shortcode as well. It will display products as per the options and settings.

    Depending on the theme you are using, you could perhaps insert a section above the content of the page.

    There are also default Exchange filters that you can use for this, e.g. add the following code at the end of your active themes functions.php file (but before a closing ?>, if any):

    function my_content_before_store() {
    
        echo "this will be displayed at the top of the store";
    
    }
    add_action( 'it_exchange_content_store_before_wrap', 'my_content_before_store' );
    Thread Starter bhomatude

    (@bhomatude)

    Thank you for such a quick reply!

    This worked fine for me — thanks so much. I can add custom sidebar widgets in my theme and perhaps I can target a specific widget to show content here. Will look into this.

    something like echo get widget ” ”

    Plugin Author ronaldvw

    (@ronaldvw)

    Hi, it did give me some inspiration, and I intend to add functionality to the plugin to add

    * optional content boxes before and/or after the loop
    * option to load the custom loop page before or after any existing page content

    I’ll probably have an update within a couple of days, or at least a Beta version.

    Thread Starter bhomatude

    (@bhomatude)

    That’s great! Thanks so much for your continued development of this plugin.

    Plugin Author ronaldvw

    (@ronaldvw)

    give it a try!

    Thread Starter bhomatude

    (@bhomatude)

    Wow. Perfect! A very welcome upgrade.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Allow for content before the store shortcode?’ is closed to new replies.