• I am trying to pull the posts from a specific category, and have the links automatically created. I am not sure how to explain this exactly.

    I have a nav scroller on the page. I want each of the images in the nav bar to link to individual posts from one category. When clicked, the corresponding blog needs to display as shown in the mock-up image here:

    https://billboardfamily.com/mockup.png

    I want every post from that category, not a specific number. I also want the newest blog (which will be the first one in the nav scroller, also) to appear when the page initially loads. I know this can all be automated in code, and I believe pretty simply, but I do not know how to do it.

    If you can help me, please let me know. I am using Theme Tester, so only logged in users can see the backend theme being worked on. I have set up a temp login https://billboardfamily.com/wp-admin

    PASSWORD: sitepoint
    USERNAME: sitepoint

    The page this is on is https://billboardfamily.com/monthly-charities/

    Here is the CSS: https://pastebin.com/ZyH75epS

    Here is the code for the actual page: https://pastebin.com/XuU6276F

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter martinfamily2005

    (@martinfamily2005)

    CONTINUED

    Here is some code (from a different site of mine) I used before that will do some of what I need, but I can’t seem to figure out how to integrate it into the code for the slider and make it work properly. Can someone help me out?

    <?php $my_query = new WP_Query('posts_per_page=8&cat=6&offset=1');
    	while ($my_query->have_posts()) : $my_query->the_post();
    	$do_not_duplicate = $post->ID;
    	?>
    	<div class="box-small">
    	<?php getFirstImage(); ?>
    	<hr />
    	<div class="previousblogs-date">
    	<?php the_date(); ?><br/>
    	</div>
    	<a href="<?php the_permalink(); ?>"><div id="prev-blog-title"><?php the_title() ?></div></a>
    	</div>
    	<?php endwhile; ?>
    Thread Starter martinfamily2005

    (@martinfamily2005)

    Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need some help with pulling posts & displaying them’ is closed to new replies.