Getting Post Permalink Outside of Loop Not Working

According to: http://wpseek.com/get_comment_count/ $single is the post ID. Try: public function get_comment_count($single){ if (isset($this->params[‘comments’]) && $this->params[‘comments’] == ‘yes’){ return ‘<div id=”disquscomments”><a href=”‘.get_permalink($single).’#disqus_thread”>Comments</a></div>’; } else { return null; } }

This plugin throws error on the events page only [closed]

Looks like it’s not loading jQuery at all, and actually it’s commented out. So, none of your (All In One Event Calendar’s) subsequent jQuery is firing. Take a look at WP Tuts’ article on how to enqueue scripts. This methodology prevents competing versions of jQuery and possible, in this case, missing scripts.

Woocommerce custom fields

Firstly, i would use a custom function in your child themes functions file rather than add the code directly to the template file. You can use the WooCommerce conditional tags and hooks in your code. echo get_post_meta( get_the_ID(), ‘collection_text’, true );

Post curl function save twice using plugin hook function wordpress

That is normal behaviour. See this question on WordPress Stack Exchange: Plugin Development: WordPress processes twice on post update. How to skip process on the first? answered by @Hameedullah Khan. WordPress call functions hooked to save_post twice because: first time it saves the post revision. second time it saves the actual post. As Hameedulah suggests, … Read more