Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Counts all show zero #337
    mtnhops
    Participant

    The site is currently on local but I can put it on a temp server soon.

    I’m using a genesis child theme, so using action hook that places code in the entry header (also tried entry content) inside the post loop everywhere – so on blog index, single post, etc. Here is code (I also tried not passing post ID since inside the loop). All cases return the correct thumbs up/down and that part works, but outputs a 0 for total count.

    add_action('genesis_entry_header', 'wti_add_votes');
    function wti_add_votes() {
    	echo GetWtiLikePost($post->ID);
    	GetWtiTotalCount($post->ID);
    }
    in reply to: Display Total Instead of Like/Dislike #331
    mtnhops
    Participant

    Were you able to figure this out? I’d like to do the same thing.

Viewing 2 posts - 1 through 2 (of 2 total)