• Is it possible to make some sort of code like
    <?php the_excerpt('PAGEID'); ?>

    To pull information from another page. I want to have a area that oulls about 50 characters from my about page to the index page and display it in a box. I cannot think of a way to do this. I thought at first the would be a guery method but didn’t find one. Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php $about_page = get_page_by_title('about'); echo "<p>$about_page->post_content</p>";?>

    that would display your about page. regarding the character limit, haven’t researched it yet.

    Thread Starter kr3wks8r231

    (@kr3wks8r231)

    Thank you, I wonder if someone knows how to make a a limit to a varible. maybe something like <?php $about_page = limit('50') ?> If only it was so easy.

    So does anyone know how to apply a character limit to this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Grab content from another page?’ is closed to new replies.