Hi Felix,
this is a bug. I will take care about it! Thank you for your help!
Greetings,
Sven
Can you tell me which plugin do you use for showing Posts as Widget and can you send me a screenshot of this behaviour?
That would help me a lot!
Hi Sven,
Thanks for your quick reply! I just came back and saw your mail. Sorry for the delay.
No I did not use a plugin for the posts in widget. I constructed one myself. I used pages, not posts!
How do I upload the screenshot? Could not find a way in this place neither on your website.
Regards, Felix
Hi Felix,
I got your email with the screenshot. I need the code you are doing in the widget.
We are adding the survey by filtering the “the_content” and checking if the global post is a questions post type. I think thats the problem.
Greetings,
Sven
Hi Sven,
Yes you’re right, but the_content is made up of HTML and the pages invoked in that widgets are in fact HTML, so there is a call to that HTML, and we really don’t need that.
Here’s the simple code placed inside the widget;
<?php
$args=array(
'cat' => ('51'),
'post_type' => 'any',
'showposts'=>1,
'ignore_sticky_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php responsive_entry_before(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php responsive_entry_top(); ?>
<h6 class="post-title"><?php the_title(); ?></h6>
<div class="post-entry"><?php the_content(); ?>
</div>
<?php endwhile;
}
wp_reset_query();
?>
</div>
I hope this will help you.
Regards
Felix
Hi Felix,
why are you getting ‘any’ post type? This will include posts, pages and all post types other plugins are doing.
I will try to find a way that the our plugin won’t show this messages in oter loops. But to specify the post type can be a first short solution for you.
Greetings,
Sven
Hi Sven,
I did a test specifying the post_type for each type without any result. But it has to do with the ‘body’ (HTML), I’m pretty sure about that.
Regards,
Felix
Hi Felix,
I have tested it. The message is appearing on every post which contents a survey but not on other post types. This is also a problem but in this case I won’t do anything at the moment, because I am working on at the moment. The complete form processing will be written new to get more consistens in it.
I will inform you when I have done and have an eye on your problem. After recoding you can test it again.
Greetings,
Sven
Hello Diegooli,
The plugin will become a formbuilder with all functions of all functionality of the “Questions” plugin. The new Plugin name will be “Torro Forms” and will be launched in the next weeks as beta. There you won’t have these problems anymore.
Greetings,
Sven
Hi Diegooli,
we have launched Torro Forms today. Please visit http://torro-forms.com/ or install the Torro Forms Plugin from the WordPress repository by searching it in the “Plugins” section in your WordPress Admin.
Greetings,
Sven