Support ForumBlog posts newer / older article link not navigating within a category – Support Forum https://support.ishyoboy.com/forums/topic/blog-posts-newer-older-article-link-not-navigating-within-a-category/feed/ Sat, 04 May 2024 00:52:51 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/blog-posts-newer-older-article-link-not-navigating-within-a-category/#post-1004 <![CDATA[Blog posts newer / older article link not navigating within a category]]> https://support.ishyoboy.com/forums/topic/blog-posts-newer-older-article-link-not-navigating-within-a-category/#post-1004 Mon, 28 Oct 2013 02:54:29 +0000 omnidesigns I also noticed that the newer article | older article button don’t move under path of the category:

https://staging.empow.me/blog/category/student-showcase/

This article “newer article” button:
https://staging.empow.me/blog/student-showcase/sarahs-sweet-16-party/
goes here:
https://staging.empow.me/blog/news/laptop-deconstructed/

]]>
https://support.ishyoboy.com/forums/topic/blog-posts-newer-older-article-link-not-navigating-within-a-category/#post-1016 <![CDATA[Reply To: Blog posts newer / older article link not navigating within a category]]> https://support.ishyoboy.com/forums/topic/blog-posts-newer-older-article-link-not-navigating-within-a-category/#post-1016 Mon, 28 Oct 2013 07:25:53 +0000 IshYoBoy Hi,

This functionality is so by purpose. Not all users wish the “post navigation” to navigate only within the category. You could easily change this by a little modification:

1. Open the file “\wp-content\themes\nalleto\assets\framework\wp\options\custom-functions.php” and find line where this text appears:

function ishyoboy_blogpost_prev_next

The whole function should look like this:

If you change the lines with “get_adjacent_post” to have the first parameter as “true” this will do the trick. The final code will therefore look:

The next time a new update will be available this code will be replaced so we suggest using a Child Theme . There is one provided within the downloaded files from the marketplace. You can use it as a starting point.

Then make sure the code above is wrapped inside a “function_exists” statement like this:

Now to override this function inside the Child Theme just copy it, do the changes (changing false to true) and add it to the bottom of “functions.php” file in your child theme without the function_existsstatement so just:

Hope it’s clear,
Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>