Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #6173

    When creating columns in the Template Builder, there are two options for page and post content:

    – Single Page

    – Post from category

    If these options are selected, but no specific page or post is then chosen to be displayed, the default setting will display the LATEST post/page. How can I change the default so it is the CURRENT post/page? ie the post/page that I want to apply the template to.

    Thanks guys



    It’s basically the same issue like here: (Purchase code hidden if logged out) -post

    It’s possible but requires some changes to the option panel and helper-template.php. I reported the request to Kriesi and I’m sure he’ll look into it soon.


    Hey dude,

    I know. I was going through the register-admin-dynamic-options.php and helper-templates.php this weekend. I managed to get the new options in the menus, but the changes I tried for the helper-templates didn’t work. I can’t make sense of all the variables. I thought I could use some of the code from the post/page template option (the one that doesn’t use columns), since that has a default current post option already set (‘self’), but the way the code gets the ids isn’t the same.

    If Kriesi updates the code it would be really useful to have the following options in the column content selection:

    Current post/page content – make this the default instead of the latest post.

    Singe post – at the moment you can only choose a category.

    There is a workaround for selecting a specific post in a column, but it involves making a separate category for every individual post (and I’m not even sure if that works), which isn’t very efficient, and also still doesn’t allow you to apply a template to several posts (a category) where you only want the content of one post to show (ie the post that you apply the template to).

    Thanks for trying to help as always!



    thanks for the input, I will have a look at the idea ;)

    sounds quite good…




    Hi Kriesi,

    If changing the default setting isn’t too complicated, could you post the php changes here please?

    Thanks for your help!



    Oh, and nice job on “Flashlight” too. It’s really nice!



    i need to show the category post and the date on the top of the post image in a custom template with columm, wich file i have to mod?

    I think that i have to insert in helper-template.php this code, how i have to do it?

    //check if we should display post content

    if(strpos($data, ‘post’) !== false)


    $output .= “<div class=’entry-content’>”;

    $output .= “—->>>POST CATEGORY—->>>POST DATE <h1 class=’post-title’>“.get_the_title().”</h1>”;

    $output.= avia_excerpt(150);

    $output.= ” “.__(‘Read more’, ‘avia_framework’).”<span></span>“;

    $output.= ‘</div>’;

    $extraClass = $extraClass.’_content’;



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

The topic ‘Change default setting for Template Builder column content (pages and posts)’ is closed to new replies.