Support » Fixing WordPress » Page content in Divs

  • I am looking to put the content of a page in a div on my homepage. I have found several ways to do it, but they get the content and not the title and my php is still growing so I thought I’d turn to here for help because google isn’t coming through. 🙂

    This is the code that I’m using that’s getting me the page content;

    <?php echo do_shortcode(‘[post-content id=1286]’); ?>

    what can i add or do differently to get the title as well, ideally separate so I can assign th same class I’m using for the other sections.

    thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page content in Divs’ is closed to new replies.