silentgap
Forum Replies Created
-
Forum: Plugins
In reply to: Custom Fields in Comment form@waynesmallman – take a look at these links
https://phpdoc.www.ads-software.com/trunk/WordPress/Comment/_wp-includes—comment.php.html
https://lab.yukei.net/wp-code/nav.html?_functions/index.htmlThe page is in the codex (https://codex.www.ads-software.com/Function_Reference/update_comment_meta) but still needs documentation
*** UPDATE ***
In the WordPress version number it gives is 2.9, so if your system is older than that, you may need to upgrade – can’t speak with any authority on that thoughForum: Fixing WordPress
In reply to: custom WP_query with tagsHave you tried throwing the post id to the get_the_tags function? So, something like this:
<div class="tag_list">tags: <?php $tags = get_the_tags($post->ID); $total_tag_count=0; foreach($tags as $tag) {$total_tag_count++;} $tcount = 0; foreach($tags as $tag) { $tag_name = $tag->name; $tag_slug = $tag->slug; echo '<a href="/tag/'.$tag_slug.'" title="'.$tag_name.'">'.$tag_name.'</a>'; $tcount++; if ($tcount < $total_tag_count) { echo ", "; } } ?> </div>
You could probably clean up the first foreach so you only have to use one, but this should give you a general idea.
Forum: Themes and Templates
In reply to: Can’t get tags to show up in WP_Query loop…Have you tried throwing the post id to the get_the_tags function? So, something like this:
<div class="tag_list">tags: <?php $tags = get_the_tags($post->ID); $total_tag_count=0; foreach($tags as $tag) {$total_tag_count++;} $tcount = 0; foreach($tags as $tag) { $tag_name = $tag->name; $tag_slug = $tag->slug; echo '<a href="/tag/'.$tag_slug.'" title="'.$tag_name.'">'.$tag_name.'</a>'; $tcount++; if ($tcount < $total_tag_count) { echo ", "; } } ?> </div>
You could probably clean up the first foreach so you only have to use one, but this should give you a general idea.