145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Hello,

For example I’m on mysite.com/2013/04/20 where it displays all the posts of that day. I want to have a navigation (you can switch between the archive days).

BUT if 2013/04/21 doesn’t exist, it should jump to 2013/04/22.

I usually use this code: <?php get_day_link(‘year’, ‘month’, ‘day’); ?>

Is there a way to automatically get the next day where posts exist?

505 posts Premium Website Design
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has referred 50+ members
+3 more
SpyroPress says

Hello,

For example I’m on mysite.com/2013/04/20 where it displays all the posts of that day. I want to have a navigation (you can switch between the archive days).

BUT if 2013/04/21 doesn’t exist, it should jump to 2013/04/22.

I usually use this code: <?php get_day_link(‘year’, ‘month’, ‘day’); ?>

Is there a way to automatically get the next day where posts exist?

If you need the functionality we can develop this for you. Contact us

Thanks -S

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Hm, is it that complicated? the navigation already works. I just need a tip how to jump over days that doesn’t exist.

505 posts Premium Website Design
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Has referred 50+ members
+3 more
SpyroPress says

Hm, is it that complicated? the navigation already works. I just need a tip how to jump over days that doesn’t exist.

Kind of complicated…

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says


Hm, is it that complicated? the navigation already works. I just need a tip how to jump over days that doesn’t exist.
Kind of complicated…

not at all complicated….

https://codex.wordpress.org/Function_Reference/WP_Query#Time_Parameters

query your posts with the time parameters then use the default pagination

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by