Forum Replies Created

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thread Starter unknownmale

    (@unknownmale)

    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?

    Yes…Add this:

    'format' => '%link',
       'link' => '%title
    Thread Starter unknownmale

    (@unknownmale)

    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 -->

    Thread Starter unknownmale

    (@unknownmale)

    The 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>
    Thread Starter unknownmale

    (@unknownmale)

    This 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>

    Thread Starter unknownmale

    (@unknownmale)

    Sorry. I want to be able to add a class to the <a> which is outputted by this code.

Viewing 6 replies - 31 through 36 (of 36 total)