Para saber si el problema del tema que usas, cambia de tema y prueba entonces.
Por otra parte, si no me equivoco, el tema que usas es de pago. No tenemos aceeso a ella y por tanto poco más te podemos ayudar. Deberá ponerte en contacto con el soporte de tal plantilla y trasladar a ellos la consulta.
Gracias por tu respuesta, el tema que uso es gratuito Pandora Theme. He cambiado a otro y tampoco veo la página individual de un evento.
Creo que el problema viene por que no reconoce el tipo de post evento, he intentado arreglarlo modificando functions.php del tema con el siguiente código que he encontrado, pero nada, no sé si no será correcto:
function edit_my_query($query) {
// Modify category and tag listings to include ai1ec events and all uses of the same term
// across event and post taxonomies
// ie live-music or arts whether they are event or post categories
// also include ai1ec events in blog home and feeds
if ( ( is_home() || is_feed() || is_category() || is_tag() )
&& empty( $query->query_vars['suppress_filters'] ) ) {
// The 'suppress_filters' test above keeps your menus from breaking
$post_type = get_query_var('post_type');
if($post_type && $post_type[0] != 'post') {
$post_type = $post_type;
} else {
$post_type = array('post','ai1ecev_event'); // add custom post types here
}
$query->set('post_type',$post_type);
if (is_category() || is_tag()) {
// Add custom taxonomies to category and tag pages
if (is_category()) {
$taxonomy1 = 'category';
$taxonomy2 = 'events_categories';
}
if (is_tag()){
$taxonomy1 = 'post_tag';
$taxonomy2 = 'events_tags';
}
$queried_object = $query->get_queried_object();
$slug = $queried_object->slug;
$query->set('tax_query', array(
'relation' => 'OR',
array(
'taxonomy' => $taxonomy1, 'field' => 'slug', 'terms' => $slug
),
array(
'taxonomy' => $taxonomy2, 'field' => 'slug', 'terms' => $slug
)
));
}
}
}
add_action('pre_get_posts', 'edit_my_query');
Gracias por la ayuda.
-
Esta respuesta fue modificada hace 6 años, 7 meses por Fernando Tellado. Razón: Arreglar código