Start loop from specific post ID

I’m not sure I understand what you are trying to achive, but I suspect you want to: – show current post in carousel – show all other posts (without post shown before) – single post If thats what you need one more loop – so you can first show your current post, then to show … Read more

previous and next post of same category on singlepost.php

I would not use get_posts() to setup my loop on the single.php page. I would just use the normal proper loop. Please check out this page in the codex about Theme Development Here is an example of a single.php that will work as expected <div id=”primary” class=”content-area”> <div id=”content” class=”site-content” role=”main”> <?php // Start the … Read more

Numbering author posts in posts query

You could have an authors totals array and on each iteration you would increment that author’s key: <?php foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <?php $author_count = isset( $authors_totals[ get_the_author_meta(‘ID’) ] ) ? int_val( $authors_totals[ get_the_author_meta(‘ID’) ] ) + 1 : 1; ?> Date: <?php the_date(‘d/m/Y’); ?> Title: <?php the_title(); … Read more