Events not picked up by posts loop

Home Forums Calendar Products Events Calendar PRO Events not picked up by posts loop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1188219
    masspeaceaction
    Participant

    I use the MH Magazine theme and it selects posts based on a WP_query using the tag “featuredpost”. Both regular posts and TCE Pro Events used to be selected by this query but now only regular posts are selected and TCE Pro Events are not. I know you are not responsible for their code but please advise where to look.

    Code is at https://gist.github.com/rozziecole/88719e3cbcf0f758ecd110c1bece9377

    #1188634
    Josh
    Participant

    Hey Coleman,

    Thanks for reaching out to us!

    On line #21 of your snippets, you can add a “post_type” argument there that would take an array of both “posts” and “tribe_events”. You can see an example of that here https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

    Let me know if this helps.

    Thanks!

    #1188770
    masspeaceaction
    Participant

    That worked great, thanks Josh!

    #1189068
    Josh
    Participant

    Hey Coleman,

    No problem, happy to help!

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Events not picked up by posts loop’ is closed to new replies.