• I am trying to display content in a sidebar. I am using the
    <?php get_a_post(‘featured-release’,’GETPAGE’); ?>
    <?php the_content(); ?>
    tag.

    Worked from a page on a different site. Getting nothing here.

    Not sure where I should be looking. Already looked at page content. Tried to insert into a page. It disrupts the sidebar.

    Any ideas of alternatives?

    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • why are you not putting this code in divs, maybe if you control their location and size you might not disrupt the sidebar, also how about create a page, and
    have you code in there, than just include that page

    page sidebar_posts.php

    <?php get_a_post('featured-release','GETPAGE'); ?>
    <?php the_content(); ?>

    than in sidebar
    <?php include("sidebar_posts.php"); ?>

    Thread Starter cheriejd

    (@cheriejd)

    I am not worried about positioning at this point. I have it inline in the sidebar. It will go in a div when I have something to work with. I was just testing a page to see if it would show up. It does not and it eliminates the sidebar. I want to put it in a sidebar.

    Featured Release is a page. It is called featured-release.

    I am not sure where to go from here. Any help would be appreciated.

    how about just make a div in your code have the `<?php get_a_post(‘featured-release’,’GETPAGE’); ?>
    <?php the_content(); ?>` in there and position it such that it looks like its part of the sidebar,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘display page content in sidebar’ is closed to new replies.