Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-20-2015, 03:37 AM   #1
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,967
WP Next/Previous Posts Exclude Category(s)

A little WP help would be appreciated with $excluded_terms in the next/previous posts link.

I've looked at the Codex for next post links help and have been unable to make it work.

I think I have the right file ( /wp-includes/link-template.php ) but at this stage I'm questioning everything...including my sanity lol.
Freedom6995 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2015, 09:29 AM   #2
HowlingWulf
Confirmed User
 
HowlingWulf's Avatar
 
Join Date: Nov 2001
Posts: 1,662
First off, don't change WordPress core files. It will just get overwritten anyway next update.

Instead, make the changes to your child theme's files so they won't be lost.

Here's an example to show next post that's not in category ID 13.

Code:
<?php next_post_link( '%link', 'Next post', FALSE, '13' ); ?>
__________________
WP Porn directory/review theme Maddos $35.

webmaster AT howling-wulf.com
HowlingWulf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2015, 03:29 PM   #3
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,967
Quote:
Originally Posted by HowlingWulf View Post
First off, don't change WordPress core files. It will just get overwritten anyway next update.

Instead, make the changes to your child theme's files so they won't be lost.

Here's an example to show next post that's not in category ID 13.

Code:
<?php next_post_link( '%link', 'Next post', FALSE, '13' ); ?>
Thanks for your help. Not sure where my brain decided to vacation this morning, but it sure wasn't at work. lol Thanks again.
Freedom6995 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
posts, next/previous, file, including, sanity, lol, questioning, unable, stage, links, appreciated, $excluded_terms, exclude, categorys, link, post, looked, codex



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.