WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Snippets] How do I integrate a snippet into my post query thingy? (1 post)

  1. Pete
    Member
    Posted 4 years ago #

    How do I integrate a snippet into my post query thingy?

    for example... i want to do this... (it doesn't work by the way)

    <?php $recent = new WP_Query('cat=<?php snippets_value( 'XYZABC' ); ?>&showposts=1'); while($recent->have_posts()) : $recent->the_post();?>

    this is the error i get...
    Parse error: syntax error, unexpected T_STRING in /home/flower16/public_html/wp-content/themes/FlowersEddy/home.php on line 5

    Thanks heaps

    http://wordpress.org/extend/plugins/snippets/

Topic Closed

This topic has been closed to new replies.

About this Topic