• Hello,
    I’m building a site that will have 10k+ pages and I need to create a standard shortcode which is the same on every page (within part of the page content itself rather than templated) that uses the spinning function – but I need around 10 existing shortcodes to load within the spun content and I can’t seem to figure out how you would do those as it seems the spintax needs the {} to execute but inside the ” it only allows it to be text.

    This is where I’m at so far and I know it doesn’t render the shortcodes inside the spun text:

    function intro_content_para_1() {
         return '<p>'.wpts_spin( '{The temperature in [acf field="destination_name"] is currently [current_temperature]|The temperature is currently [current_temperature] in [acf field="destination_name"]|It\'s currently [current_temperature] in [acf field="destination_name"]}', array( 'cache' => '31536000' ) ).'</p>';
         }
         add_shortcode( 'intro_content_para_1', 'intro_content_para_1' );

    Do you know of any ways this might be possible to get this going?

    Thanks ??

  • The topic ‘Outputting shortcodes inside the spun text inside functions’ is closed to new replies.