Using columns inside a post with a shortcode

  • Author
    Posts
  • #34925
    Tadh

    I’m wondering if it is possible to somehow use columns from presentation page inside a post with a shortcode? I’m using Tempera version 1.3.3

    Thank you 🙂

    #34955
    Zed
    Cryout Creations mastermind

    Wordpress.org doesn’t accept shortcodes functionality in themes (anymore) so we can’t include such functionality.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #34963
    Tadh

    Hi, thanks for your answer.

    Is there any “hack” way around this? I’ve tried putting the following code into single.php but it didn’t work..

     <div id="front-columns"> 
     <?php
    	foreach($columns as $column):
    		if($column['image']) :
    			$counter++;
    			if (!isset($column['blank'])) $column['blank'] = 0;
    			$coldata = array(
    				'colno' => (($counter%$nr_columns)?$counter%$nr_columns:$nr_columns),
    				'counter' => $counter,
    				'image' => esc_url($column['image']),
    				'link' => esc_url($column['link']),
    				'blank' => ($column['blank']?'target="_blank"':''),
    				'title' =>  wp_kses_data($column['title']),
    				'text' => wp_kses_data($column['text']),
    				'readmore' => wp_kses_data($readmore),
    			);
    			tempera_singlecolumn_output($coldata);
    		endif;
    	endforeach; ?>
    </div>
    #35039
    Zed
    Cryout Creations mastermind

    Just that will not work. More code is required to include the columns in pages.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #35323
    Tadh

    Any chance for some help with this? I’ve tried many things but couldn’t get to anything that works 🙁

    #35746
    Corine

    Hi Zed,

    I have the same question. I would love to use the columns on different pages or in posts. I am no programmer so I really don’t know if this is asking too much, but if there is some code available to use I would love to get it as well…

    Thanks for all your hard work!

    Corine

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

The topic ‘Using columns inside a post with a shortcode’ is closed to new replies.