Tagged Questions
0
votes
1answer
60 views
Offset Loop by 1 , Limit next loop to 1 (Most Recent) Post
I have a loop that I would like to Offset by 1 so the most recent post is not displayed, and another loop where I only want 1 item which would be the most recent post.
These are the loops I tried: ...
1
vote
1answer
126 views
Add inline HTML to posts published within last 24hrs
Basically I'm looking to add this line of code to posts published within the last 24hrs:
<span class="new">New!</span>
When the post is over 24hrs old, remove the inline HTML element.
...
1
vote
1answer
83 views
the_excerpt not showing posts
I'm using the following code to show the single most recent post on my landing page:
<?php if (have_posts()) : ?>
<?php if (($wp_query->post_count) > 1) : ?>
<?php while ...
0
votes
2answers
150 views
Lists Top Authors by Most Recent Posts
I'm trying to display a table format of the top authors listed by the most recent posts. It should display the author, its avatar, the date, and the title of the post (with a link).
I have it ...
0
votes
2answers
364 views
Related Posts loop - offset
I've been working on this for many, many, many weeks already. I've already asked similar questions here and elsewhere, but nobody seems to be able to sovle this problem.
Maybe it's not possible ...
0
votes
1answer
192 views
Show recent posts starting at a specific number archive
Is there an argument to define how many posts ago will be displayed in "recent" posts. Could I add something to this and define a specific number of posts ago to start the loop?
$args = array( ...