Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stinkykiller

    (@stinkykiller)

    Well well…
    I found this piece of code that works for me.

    <?php
    $my_id = 3;
    $mypage = get_post($my_id);
    ?>
    <h2 class="boxTitle"><?php echo $mypage->post_title;?></h2>
    <?php echo substr($mypage->post_content,0,strpos($mypage->post_content, '<!--more-->'));?>
    <?php echo substr($mypage->post_content,0,strpos($mypage->post_content, '<!--more-->'));?>

    Now I have a question,
    Why If I delete one of the last two lines of code, it show me only the title not the content. I try making one strong and the other underline, the last one always remains on page, but can’t delete anyone of those 2 lines,

    WHY ???

    Thread Starter stinkykiller

    (@stinkykiller)

    Thanks for the link, but I don’t know how to aply it to my case, I’m a noob on PHP 🙁

    I’m trying to do the same, I use the ExecPHP plugin
    and got it working fine, but have a little problem that I’m trying to get help with. See my code and obstacle HERE

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