paozinho
Forum Replies Created
-
Forum: Plugins
In reply to: [YOP Poll] Shortcode not workingOk thank you…
Forum: Plugins
In reply to: [YOP Poll] Shortcode not workingHello, thank you very much… This would be perfect if i could pass the $poll_id dinamically, because i need to display different polls in the same page template… Is there a way to do this?
Regards,
PaozForum: Plugins
In reply to: [YOP Poll] Short code doesn't workI have exactly the same problem… I tried to delete and reinstall the plugin but nothing changed..
If you want have a look this is the url:
https://clapiz-stage.espero.it/attivita/sondaggio-lorem-ipsum/
Thank you very much
PaozThis post is resolved
Tom you are the boss !!!
Now everything is working well !
You saved my day ! Thank you very much !Regards,
PaozinhoI tried to disable all the plugins and nothing happens but maybe i found where the problem is…
To make categories archive pages working also for custom post type I needed to add to function.php the following code (here is the reference i found https://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/ )add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if(is_category() || is_tag() || is_home() && empty( $query->query_vars[‘suppress_filters’] ) ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘post’, ‘page’, ‘notizie’, ‘attivita’, ‘test’ , ‘nav_menu_item’);
$query->set(‘post_type’,$post_type);
return $query;
}
}Probably we need to add “Metaslider” in the array because if i remove nav_menu_item also the navigation menu disappear… Any idea?
Thank you very Much !!!
Hi
here is working:https://clapiz-stage.espero.it/notizie/
here is not working:
https://clapiz-stage.espero.it/categorie/attualita/thanks !
Forum: Plugins
In reply to: [Calendar] display a calender for just one categoryHello Kieran i need to insert the calendar into a page template so i can’t use {CALENDAR;1}… Which is the right string to display the calendar ?
Thank You !