Home>Support>customizing “previous_post_link” (single posts) in vantage

customizing “previous_post_link” (single posts) in vantage

Hello,
I have just installed Vantage, and it’s amazing! In fact, I’m using a child theme, as I need some special functionalities, and I cannot seem to nail one of them.
I have two (main) categories for posts: ‘blog’ and ‘scripta’. (None of the posts belong to both.)
I would like the to customise the “previous post” and “next post” link displayed in single posts:
– I need single posts in ‘scripta’ to display previous/next links that point to the previous/next post that has the same tag (posts in ‘scripta’ have only one tag); and
– I need posts in ‘blog’ to display the links to posts in the same category.

I managed it in other themes by
creating ‘single.php’ and ‘single-scripta.php’ (and adding the relevant function for ‘scripta’ posts to have the correct single template) in the child theme,
and then adding parameters to the “previous_post_link”/”next_post_link” according to the WordPress codex,
— but as Vantage has these defined in template-tags.php and single.php has a different line (”), this method will not work.
Can you please help me around this?
Many thanks in advance.

PS:

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Eszter,

    I’d like to help you with this issue. Unfortunately, this is beyond the scope of the support we’re able to offer on our free forums. There is a fair amount of custom work involved.

    We do offer this level of support to our premium users, so if you’d like to upgrade to SiteOrigin Premium, then I can help you over email support.

    If you’d prefer not to upgrade to SiteOrigin Premium, then you can hire a WordPress developer from Codeable. They’ll charge you an hourly rate for any work done.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More