Removing Popularity Contest AKPC_IDS+ from calendar view excerpts

Home Forums Calendar Products Events Calendar PRO Removing Popularity Contest AKPC_IDS+ from calendar view excerpts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21378
    Jonathan
    Participant

    I use both The Events Calendar Pro and the Alex King Popularity Contest on a site. The popularity contest was adding it’s tracking to the end of all the tooltip popup descriptions in the calendar view. I ended up fixing by “unhooking” the function from the_content by adding:

    remove_action(‘the_content’, ‘akpc_content_pop’);

    to the table.php file right before the call to the content:

    echo has_excerpt() ? TribeEvents::truncate($post->post_excerpt) : TribeEvents::truncate(get_the_content(), 30);

    I really have a limited understanding of PHP so is this OK? Is there a better way to do it?

    #21418
    Jonah
    Participant

    Hi Jonathan,

    It might not be ideal but conventions vary in PHP and if it works for you then that’s the main thing that matters.

    Let me know if you need anything else with this.

    Cheers,
    Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Removing Popularity Contest AKPC_IDS+ from calendar view excerpts’ is closed to new replies.