Questions tagged [offsets]

The tag has no usage guidance.

1
vote
2answers
205 views

Exclude the first 'n' number of posts of a tag from home page?

Use case (example): Using a separate, custom query my website's home page shows 5 featured posts, tagged 'Highlights (highlights)', followed by the latest posts, from the main query. I don't want the ...
1
vote
1answer
407 views

WP Query with offset breaks wp_pagenavi or any pagination

I am working on a custom loop using WP_Query using the offset parameter. The problem is that as soon as I add the offset, it breaks the pagination, displaying the same links no matter the page number. ...
0
votes
1answer
31 views

myprefix_adjust_offset_pagination' not found

I have excluded the first 5 posts from the first page on the main page This is the only code that works for me in my functions.php: function my_function_for_excluding_posts( $query ) { if ($query->...
0
votes
1answer
560 views

Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken

I'm working on a theme and I am having trouble with loops/pagination breaks when using an offest. I looked online and tried to use only 1 loop (per this post) but I'm having trouble making it work. I ...
0
votes
1answer
147 views

Featured Image as Background with Offset

I have a custom Wp_Query in my header that displays the latest post and then a list of 10 posts below which are offset so not to include the recent post. I want to use the latest post's featured ...
0
votes
1answer
309 views

Querying Multiple Categories With Different Offsets

On my website I have a "Breaking News" section which shows the most recent 4 stories in the "Breaking News" Category. Under this I have a featured news section which displays 5 more stories from the "...
-2
votes
1answer
380 views

How to remove post duplicate when using query_posts('offset=1')

I used query_posts('offset=3') in index.php, while there exist a problem in pagination. In all page it show the same content of first page. How to solve this problem?
1
vote
0answers
38 views

Blog page pagination is not working after using the offset argument

I have displayed the recent 7 posts then shown the remaining posts. So I have added the offset = 7 in the argument to skip above 7 recent posts and display remaining posts but the pagination not ...
0
votes
0answers
18 views

Timezone for Plugin

I'm using these two lines: $expires = strtotime( $_POST['expire_date']); if($expires < time()) to test the time in the name=expire_date form against GMT time. But no matter what I do my expire ...
0
votes
0answers
20 views

Best practice and technology to Offset anchor links

I am using anchor links in the Front Page of this Website. They are in ACCUEIL, SPORTIVES, VOYAGES and CONTACT. In order for the anchor links to land in the right place, below the menu upper bar, is ...
0
votes
0answers
388 views

Jquery scroll animate offset asynchronous

I am a beginner in Jquery and I am trying to scroll an element in my page but I can't stop it properly when reaching the footer. It worked if I smoothly scroll down but in other case it's going down ...
0
votes
0answers
957 views

Wordpress WP_Query offset parameter not working with search parameter

On a wordpress query every time i add the 's' parameter the 'offset' and 'posts_per_page' will not work, it will query all posts by using the 's' parameter only, why is that? am I missing something? ...