• Hello, I cannot find solution for one issue.
    I am using PHP Code Widget and in this widget I have code to show titles of posts from some categories.

    <?php $my_query = new WP_Query('showposts=2&cat=1,3'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
    <div class="odpocty"><?php the_title(); ?></a></div>
    <?php endwhile; ?>

    And there I would like to display custom field next to the title of the post.

    Thank for help

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom field in list of posts’ is closed to new replies.