unknownmale
Forum Replies Created
-
Forum: Plugins
In reply to: [Ambrosite Next/Previous Post Link Plus] Include future posts?I have a WordPress which shows events. So as all of the events I show are in the future I show posts which are in the future using post status in the query. This works fine.
However I would like to use this plugin in the same way I use it to navigate through past events. This plugin does not allow this. Only published events
Is it possible to use this plugin to navigate through future posts?
Forum: Plugins
In reply to: [Ambrosite Next/Previous Post Link Plus] Supporting page titles?Yes…Add this:
'format' => '%link', 'link' => '%title
Forum: Plugins
In reply to: [Ambrosite Next/Previous Post Link Plus] Include future posts?This is the code I’m using:
<nav class="nav"> <ul> <li> <?php previous_post_link_plus( array( 'order_by' => 'post_date', 'post_status' => 'future, publish', 'loop' => true, 'end_post' => false, 'thumb' => false, 'max_length' => 0, 'format' => '%link', 'link' => '<span class="uline">Previous</span> %title <span class="pndate">%date</span>', 'date_format' => 'd.m.y', 'tooltip' => '%title - %date', 'ex_cats' => '', 'ex_cats_method' => 'weak', 'num_results' => 1, ) ); ?> </li> <li> <?php next_post_link_plus( array( 'order_by' => 'post_date', 'post_status' => 'future, publish', 'loop' => true, 'end_post' => false, 'thumb' => false, 'max_length' => 0, 'format' => '%link', 'link' => '<span class="uline">Next</span> %title <span class="pndate">%date</span>', 'date_format' => 'd.m.y', 'tooltip' => '%title - %date', 'num_results' => 1, ) ); ?> </li> </ul> </nav><!-- .nav -->
Forum: Fixing WordPress
In reply to: How to add a class to theThe second should be:
<li class="venthumb"><a href='https://www.example.com/1.jpg' title='img' class="classname"><img width="155" height="89" src="https://www.example.com/1.jpg" class="attachment-thumbnail" alt="img" title="img" /></a>
Forum: Fixing WordPress
In reply to: How to add a class to theThis is what is output…
<li class="venthumb"><a href='https://www.example.com/1.jpg' title='img'><img width="155" height="89" src="https://www.example.com/1.jpg" class="attachment-thumbnail" alt="img" title="img" /></a>
And I would like this:
<li class="venthumb"><a href='https://www.example.com/1.jpg' title='img'><img width="155" height="89" src="https://www.example.com/1.jpg" class="attachment-thumbnail" alt="img" title="img" /></a>
Forum: Fixing WordPress
In reply to: How to add a class to theSorry. I want to be able to add a class to the
<a>
which is outputted by this code.