soluble
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Single post page – text in Left Column, Images in Right?That’s the code which comes built in to the basic tanzaku theme when you download it. I’m trying to workout what I need to do to add to this to filter the text into one div & the images into another div.
Forum: Themes and Templates
In reply to: Single post page – text in Left Column, Images in Right?Think I might have entered the code in the above post in the wrong format for the forum, here it is again…
<?php if ($flg_img_extract) { $content = get_the_content(); $content = apply_filters('the_content', $content); $content = adjust_single_image($content); echo $content; } else { the_content(); } ?>Forum: Themes and Templates
In reply to: Single post page – text in Left Column, Images in Right?Hi Spherical,
Thank you for your reply, sorry – I didn’t explain myself very well. I’ve got the positioning divs & css sorted, my problem is that I don’t know how to get the relevant bits of information from the post to appear in their appropriate areas on the page.I’m trying to work out what code I need to put within the index.php file to get the just the title & body text from the post to appear in the .si_info div & just the images from the post to load within the .si_pics div.
PHP is not a strength of mine, however I think I need to alter the code in the theme that loads the content (shown below):
‘<?php
if ($flg_img_extract) {
$content = get_the_content();
$content = apply_filters(‘the_content’, $content);
$content = adjust_single_image($content);
echo $content;
}
else {
the_content();
}
?>‘I guess I need a separate filter for each element to then place the content in each div on the page?
Forum: Themes and Templates
In reply to: Tanzaku with static home page – post display problemHi,
Thanks, I had already tried publishing an empty page called blog & selecting in the settings > reading. Unfortunately it had no effect.I’ve tried simplifying the code in the template i’m using for the page I want to use as my static homepage & then reviewed at the code in the index.php page but not sure if this is the right track as it’s a little over my head!