This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Custom ShortCode is not wokrin in PageBuilder

Open 3 replies general
11 years ago · Last reply by Andrew Misplon 11 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.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 11 years, 4 months ago

    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. Vipul Jain 11 years, 4 months ago

    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. Andrew Misplon Staff 11 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread