Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter soluble

    (@soluble)

    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.

    Thread Starter soluble

    (@soluble)

    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();
    }
    ?>
    Thread Starter soluble

    (@soluble)

    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?

    Thread Starter soluble

    (@soluble)

    Hi,
    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!

Viewing 4 replies - 1 through 4 (of 4 total)