October 5, 2011 at 11:40 am #6230
hi, I have a number of landing pages that have a lot of duplicate content and I’m looking for a quick way to add content to the pages. the Template builder is just taking too long.
Is there a way I can duplicate template items? or….
I can copy HTML or shortcodes / text quite quickly into each individual page, however I need to know the shortcode for adding a post item into a column. My current homepage http://www.philipwhiteweddings.co.uk shows the layout I need to duplicate. I just can’t work out the shortcode to have posts from particular categories displayed in my columns.
Can you help me please…
PhilOctober 6, 2011 at 6:17 am #53390
the column shortcode looks different to the template output and takes even longer to implement (wordpress messes around with the text formatting some time, etc.). I’d suggest to create a two columns template, you can add as many column elements as you like and seperate them with hr elements, etc. (like on this page http://www.philipwhiteweddings.co.uk/ ). Another advantage is that you can apply this template to any page/post with one click.October 6, 2011 at 8:11 am #53391
I need to make slight differences in the text on each page. Having a lot of trouble saving with template builder. Have emailed you I thinkOctober 6, 2011 at 10:49 am #53392
Another user requested the option to display the current page content in columns too (it’s not possible at the moment). I reported the feature request to Kriesi and he’ll look into it. At the moment I can only suggest to use the page/post content element in combination with the columns element – when we release the update you can simply set one column to the “currebnt page content” and remove the post/page content element.October 6, 2011 at 11:08 am #53393
This would be fine but Template builder just won’t save. I’ve tried disabling all (2) plugins and I’m on the best hosting available.October 6, 2011 at 11:15 am #53394
All versions of WP and theme are up to date also. I just need to be able to duplicate the home page content across say 30 other pages with slight differences in text.October 6, 2011 at 5:09 pm #53395
There’s no dynamic solution for now. You can only “copy” the homepage content and create a hardcoded template code like:
Template Name: Custom Page
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
<!-- ####### MAIN CONTAINER ####### -->
<div class='container_wrap' id='main'>
<div class='template-fullwidth content template-dynamic template-dynamic-home_page'>
<div class='special_heading_container class_default_heading'><h4 class='teaser_text teaserlessPadding'>Welcome to Philip White Wedding Videography, I create exciting <strong>wedding films</strong> for clients who don’t want traditional <strong>wedding videos</strong>. I love to capture highlights of your wedding celebration in fine art form using a range of cinematic techniques. My technique creates an elegant, beautiful and nostalgic look that is truly one of a kind. </h4></div>
<div class='grid6 first dynamic_template_columns'><div class=' preloading autoslide_false autoslidedelay__5 slideshow_portfolio2 aviaslider block_width__full block_height__full transition_type__fade direction__ slideshow_container'><ul class='slideshow' style='height: 300px; width: 450px;'><li class=' featured featured_container1' ><a href='http://www.philipwhiteweddings.co.uk/home-films/close-house-wedding-video/'><img src='http://www.philipwhiteweddings.co.uk/wp-content/uploads/2011/08/4-450x300.jpg' title='4' alt='' /></a><div class="slideshow_caption"><div class="inner_caption"><h1>Jo & Barry // A Wedding Shindig in Neon</h1></div></div></li></ul></div></div><div class='grid6 dynamic_template_columns'><div class=' preloading autoslide_false autoslidedelay__5 slideshow_portfolio2 aviaslider block_width__full block_height__full transition_type__fade direction__ slideshow_container'><ul class='slideshow' style='height: 300px; width: 450px;'><li class=' featured featured_container1' ><a href='http://www.philipwhiteweddings.co.uk/wedding-video/ (Purchase code hidden if logged out) -wedding-video/'><img src='http://www.philipwhiteweddings.co.uk/wp-content/uploads/2011/08/12-450x300.jpg' title='12' alt='' /></a><div class="slideshow_caption"><div class="inner_caption"><h1>Helen & Steve</h1></div></div></li></ul></div></div>
<div class='grid6 first dynamic_template_columns'><h2>More About Us</h2>
<p>With the use of professional film-making techniques and equipment, my <strong>wedding video</strong> work is a cut-above the industry standard, introducing new ideas and fresh concepts to my clients. Although I work mainly across <strong>the North West my wedding videos</strong> often take me throughout the UK and abroad.</p>
<p>With an eye for the ultra-artistic, a flare for details and a knack for bringing hollywood-style production to my <strong>wedding video</strong> clients, my success is based on my ability to tell their story in a timeless fashion.</p>
<p>If you’re looking for someone to create your perfect <strong>wedding video</strong> Philip White Weddings can guide you through every step of the way. For more information on our pricing, <a href="http://www.philipwhiteweddings.co.uk/what-we-offer/">click here</a></p>
<p>Or alternatively, <a href="http://www.philipwhiteweddings.co.uk/get-in-touch/">click here to contact us</a>.</p>
</div><div class='grid6 dynamic_template_columns'></div>
<!-- ####### END MAIN CONTAINER ####### -->
<?php get_footer(); ?>
and put this code in a text file, call it template-custom.php and upload it to the theme folder. Then replace the section which should display the dynamic page text with:
if($heading_style === false) echo "<h1 class='post-title no_cufon'>".get_the_title()."</h1>";
//display the actual post content
the_content(__('Read more →','avia_framework'));
and select this template for all pages you’d like to apply it to.
The topic ‘Shortcodes’ is closed to new replies.