Viewing 6 replies - 1 through 6 (of 6 total)
  • Category id here is 7–change it to what you want:

    <?php
    $categories=get_categories('child_of=7');
        foreach($categories as $category) {
          $posts=get_posts('showposts=1&cat='. $category->term_id);
          if ($posts) {
            echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> ';
            foreach($posts as $post) {
              setup_postdata($post); ?>
              <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
              <?php
            } // foreach($posts
          } // if ($posts
        } // foreach($categories
    ?>

    Thread Starter [email protected]

    (@saiful_hoqyahoocom)

    Hi MichaelH

    Thank you very much. You have send me what i exactly needed
    I am very grateful to you

    Thread Starter [email protected]

    (@saiful_hoqyahoocom)

    hello

    can anybody please help me by providing code for popup menu for left side bar. for example when i take the mouse over a page link of left sidebar the pop up menu for sub list will be apeared to the right of that page link.
    it could be go over the content area.

    Thread Starter [email protected]

    (@saiful_hoqyahoocom)

    HI
    I want some one help to the following

    I have to implement an image slidepanel which will slide the image from a featured category post. This is exactly same as thefollowing link

    https://www.studiopress.com/demo/corporate.html

    I have found a plugin named JPostSlider which i implemented in the site

    https://wpthemedirect.com/

    But problem is there is no next previous arrow as https://www.studiopress.com/demo/corporate.html

    could some body help me please?

    saiful_hoq

    Please start new topics with your questions.

    Thread Starter [email protected]

    (@saiful_hoqyahoocom)

    hi MichaelH

    Could you give me the solution

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘first post of each subcategory of a parent category’ is closed to new replies.