GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress TAGS questions (https://gfy.com/showthread.php?t=1055935)

femdomdestiny 02-02-2012 06:44 AM

Wordpress TAGS questions
 
Hi: I have two question regarding this theme that maybe somene more experienced will know.Is there some plugin that will help do next:

1. exclude defined tags from showing on blog?
2. show only defined TAGS in widget area.

thanks

stocktrader23 02-02-2012 06:57 AM

You can take the tag call out of the template files for sure. I had to do it on a product site with 2000 product ID's as tags so I could use that post as a dynamic page.

fris 02-02-2012 03:31 PM

Quote:

Originally Posted by femdomdestiny (Post 18729721)
Hi: I have two question regarding this theme that maybe somene more experienced will know.Is there some plugin that will help do next:

1. exclude defined tags from showing on blog?
2. show only defined TAGS in widget area.

thanks

you could run a filter through the tag widget to exclude certain tags.

Code:

function my_tag_cloud_filter($args = array()) {
  $args['exclude'] = array(20, 80, 92); // tag ids to exclude
  return $args;
}

add_filter('widget_tag_cloud_args', 'my_tag_cloud_filter', 90);

like so.

for the main front page, you could do a custom query to exclude those tags.


All times are GMT -7. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123