Home>Support>Custom ShortCode is not wokrin in PageBuilder

Custom ShortCode is not wokrin in PageBuilder

By Vipul Jain, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

Hi Team,

I have created my own shortcode to show the data on page on the basis of visitor’s location. It is working fine without using the page builder.

When i use the any of widget inside the page builder, it does not work. I also searched for this but unfortunately did not find anything relative.
Please share the solution as soon as possible.

Cheers,
Vipul

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi Vipul

    If you insert your shortcode into the Text or Visual Editor widget (http://wordpress.org/plugins/black-studio-tinymce-widget/) placed in a regular widget area like sidebar or footer (anything under Appearance > Widgets, does it work?

  2. 9 years, 11 months ago Vipul Jain

    Hi Andrew,

    Thanks for the response!

    I figure out the issue. Actually it was because of session value in pagebuilder. I am assigning a session variable in my custom function but this value is not coming in the pagebuilder environment.
    I could not find out why i am not getting the session value in pagebuilder.

    Anyway for now i make the changes in my function to make it correct.

    Please let me know if you have any idea about the session value issue in pagebuilder.

    One more thing, i also created a custom function to fetched the content of any subsite’s page to another in wp multisite environment. It is working fine but in case where page is published through page builder widgets, it is not fetching the exact layout. Do you have any idea?
    I am also adding my code here for your reference –

    function get_network_content($blog_id, $page_id) {
    	$page_refrence = get_blog_post( $blog_id, $page_id);
    	if( $page_refrence ): 
    		return $page_refrence->post_content; 
    	endif;
     

    Here blog id is the site id in wp multisite network from where i am getting the content. Page id is the id of the page.

    Cheers,
    Vipul Jain

  3. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Glad to hear you’re making progress. I’ll try pass your question onto Greg. Please let us know…when you say session value, what exactly do you mean, PHP session value? What are you doing with that value?

    Any further detail will be helpful.

    Thanks.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More