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 02-15-2016, 07:59 AM   #1
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
Wordpress question

Hi Guys,
I've tweaked my theme long ago heavily but i forgot where to edit tag cloud is it stored in functions.php?
Single post on my site looks like this:
Leaked photos of very cute Chinese police girl blowing her BF part 1/3 | Asian Sex

tags are at the bottom i would like to edit tags somehow so i'll have displayed only those tags which are from current post not top 50 tags.

this is tag cloud code i've copied from functions.php is it this code which i need to edit?

Code:
add_filter ( 'wp_tag_cloud', 'tag_cloud_count' );
function tag_cloud_count( $return ) {
$tags = explode('</a>', $return);
$regex = "#(.*title[=]')(.*)( topic.*)#e";
foreach( $tags as $tag ) {
$tagn[] = preg_replace($regex, "('$1$2$3&nbsp($2&nbsp;post'.(($2!=1)?'s':'').')')", $tag );
}
$return = implode('</a>', $tagn);
return $return;
}
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2016, 09:50 AM   #2
celandina
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2006
Posts: 11,408
You are kidding right ???
celandina is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2016, 09:52 AM   #3
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
not at all. i really don't remember where to edit tags code.
year ago i've replaced standard tag code with one which displays posts count next to tag but i don't remember where was it.
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2016, 10:30 AM   #4
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
i googled and i found this piece of code:

To get a list of only the tag IDs for a particular post:

Code:
global $post;
$tag_ids = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) );
i should insert it somewhere inside
wp_get_post_tags() which is located in wp-includes/post.php

is that correct?
how to call it inside post?

tried this one:
<?php wp_get_post_tags( $post_id, $args ) ?>

but effect is blank space

ed.: ok, ive tried different code:

<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
?>

but it displays tags with no links, but i'm getting close :D

ed2.: with this code i'm getting what i wanted

<?php the_tags( 'Tagged with: ', ' • ', '<br />' ); ?>

now i need to find how to add tag counts.
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2016, 10:55 AM   #5
MakeMeGrrrrowl
Grrrrrrrrr
 
MakeMeGrrrrowl's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Dreamland
Posts: 4,974
Get a plugin.
MakeMeGrrrrowl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2016, 11:16 AM   #6
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,064
Quote:
Originally Posted by MakeMeGrrrrowl View Post
Get a plugin.
...

You are making it hard work - YUK.....
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2016, 02:10 PM   #7
Paz
Confirmed User
 
Paz's Avatar
 
Industry Role:
Join Date: Jun 2012
Posts: 457
Quote:
Originally Posted by MakeMeGrrrrowl View Post
Get a plugin.
+/like that and get a butt plug.
Paz 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
tags, edit, $return;, $tags, functions.php, code, tag_cloud_count, $return, post, $tag, cloud, tag, implode, current, return, $tagn;, displayed, top, foreach, topic.#e;, #.[=]., $regex, explode, function, add_filter



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.