Show post from user in main page

  • Unknown's avatar

    Hi there!

    I’am working on a new blog and I have a litle problem with the theme. I want to show post from only specified users. (Post from admin, videos from videoadmin, etc.) and I can’t find the solution.

    Here is the code from the template:

    ‘<?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <?php $screen = get_post_meta ($post->ID ,’screen’, true); ?>
    <img src=”<?php echo ($screen); ?>” width=”80″ height=”55″ alt=”” />
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <div class=”date”> <span class=”authr”> Írta: <?php the_author(); ?></span> </div>’

    So I wan’t to show only post from admin and not every post by ID. I have several categories and there are 2 categories which I don’t want to show in main menu again, because they are already shown in sidebar (videos and news) but they are still apears between posts in the main content. (If I write a post in video category which contains only embed youtube video it is shown it sidebar but it also appears between new posts.)

    Thanks for the help.

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for WordPress.com hosted blogs only. If you have a self-hosted WordPress blog you need to seek help at the WordPress.org forums, not here.

    If you don’t understand the difference, you may find this information helpful.

  • Unknown's avatar

    Sorry. Than I’ll register there. Thanks.

  • The topic ‘Show post from user in main page’ is closed to new replies.