{"id":7756280,"date":"2013-04-03T00:42:48","date_gmt":"2013-04-03T00:42:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/just-what-i-needed-49\/"},"modified":"2016-09-02T20:58:17","modified_gmt":"2016-09-02T20:58:17","slug":"just-what-i-needed-49","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/just-what-i-needed-49\/","title":{"rendered":"Just what I needed!"},"content":{"rendered":"<p>Five stars indeed! It is just what I needed! Other plugins wouldn&#8217;t show the posts well, or would not link pagination well&#8230; But this was the only one I could find that did it for me!<\/p>\n<p>The only thing that this plugin should be ready for is another plugin called WP-PageNavi. Thanks to another user, I could manage to show it with this code:<\/p>\n<pre><code>if( function_exists(&#039;wp_pagenavi&#039;)) {\n\t\t$output .= wp_pagenavi( array( &#039;echo&#039; =&gt; false) );\n\t} else {\n\t\tif($_opts[&#039;cur_page&#039;] &gt; 1) {\n\t\t\t$output .= &quot;&lt;span class=&#039;pfpNav&#039;&gt;&quot; . get_previous_posts_link($_opts[&#039;prevText&#039;]) . &quot;&lt;\/span&gt;&quot;;\n\t\t}\n\t\tif($_opts[&#039;cur_page&#039;] &lt;  $page_links_total) {\n\t\t\t$output .= &quot;&lt;span class=&#039;pfpNav&#039;&gt;&quot; . get_next_posts_link($_opts[&#039;nextText&#039;]) . &quot;&lt;\/span&gt;&quot;;\n\t\t}\n\t}<\/code><\/pre>\n<p>and commenting this other one to hide the stock pagination:<\/p>\n<pre><code>if($_opts[&#039;cur_page&#039;] &gt; 1)\n{\n\n\t\/\/ show prev\n\t$output .= &quot;&lt;span class=&#039;pfpNav&#039;&gt;&quot; . get_previous_posts_link($_opts[&#039;prevText&#039;]) . &quot;&lt;\/span&gt;&quot;;\n}\nif($_opts[&#039;cur_page&#039;] &lt;  $page_links_total)\n{\n\t\/\/ show next\n\t$output .= &quot;&lt;span class=&#039;pfpNav&#039;&gt;&quot; . get_next_posts_link($_opts[&#039;nextText&#039;]) . &quot;&lt;\/span&gt;&quot;;\n}<\/code><\/pre>\n<p><strong>Now, I am a happy man!!<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-7756280","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7756280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7756280\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7756280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}