L
L
ligisayan2017-04-04 13:30:23
Calendar
ligisayan, 2017-04-04 13:30:23

Is it possible to integrate calendar with wordpress theme events?

Hello! The site has an educational theme Eduma .
I would like to know if the events from this topic can somehow be integrated with the calendar plugin
. The problem is that the events of the calendar itself go as a separate taxonomy outside the output stream query_posts()and are in no way connected with the rest of the posts, I don’t know how b[ could be combined.
I wrote to the developers of the theme and the plugin - in response, silence and no clear answer. I wanted to make sure that there really is no sensible way to do this - ?
maybe some other themes and calendar plugins - I haven't found a single suitable solution yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Mavlikhanov, 2017-04-14
@ligisayan

The catch is that the events of the calendar itself go as a separate taxonomy outside the query_posts() output stream and are not connected in any way with the rest of the posts, I don’t know how it would be possible to combine b[.
you can use crochet pre_get_posts
here is an example
add_action('pre_get_posts', 'get_posts_search_filter');
function get_posts_search_filter( $query ){
  if ( ! is_admin() && $query->is_main_query() && $query->is_search ) {
    $query->set('post_type', array('post', 'movie') );
  }
}

you can find more details here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question