thread id
-
I am trying to run the following code. I basically want to output an option menu at the bottom of certain threads. I don’t want to tag individual posts or forums, but threads. Is there any way to do this?
add_filter('asgarosforum_filter_post_content', 'lp_test_output',10,2); function lp_test_output($post_content,$post_id) { //echo $post_id; if ($thread_id== 15) { $extras = "<a href=\"https://www.lightningpath.org/forums/?view=addtopic&id=10\">Discuss</a>"; } return $post_content . $extras; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘thread id’ is closed to new replies.