WordPress.org

Forums

Get A Post Plugin Not Working (2 posts)

  1. theuniek1
    Member
    Posted 10 years ago #

    I installed the Get A Post plugin so that I could easily modify the about sections of a website, however, the plugin isn't working.

    It returns the title of the post, however, it doesn't return the content. The exact code I'm using in the page is:
    <?php
    $a_post = get_a_post(16);
    foreach ($a_post as $post) :
    start_wp;
    ?>
    <h2 class="pad"><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <?php endforeach; ?>

    Thanks in advance for any help.

  2. theuniek1
    Member
    Posted 10 years ago #

    Nevermind, found the solution to the problem - didn't realize it until I took a brief break then looked at the code again.

    I realized that the code on the wiki is start_wp when I copied it, and it shoudl be start_wp()...someone may want to update the wiki to correct that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.