Title: Two issues
Last modified: August 22, 2016

---

# Two issues

 *  [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/two-issues-7/)
 * Hello,
 * I noticed two things that are kind of problems.
    The first one is that once you
   vote for a post and then delete it – the post title will still be displayed from
   the widget as existing post.
 * Second one is related to the Custom Markup area. It seems that every time you
   save the settings it will add escaping slashes (‘\’) which is kind of frustrating.
 * Regards,
    Alex
 * [https://wordpress.org/plugins/anyway-feedback/](https://wordpress.org/plugins/anyway-feedback/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/two-issues-7/#post-5298737)
 * Well i had a look at the code. About the first problem: it doesn’t check what
   is the status of the post (as the post might be in the trash your widget will
   still get the title and the permalink to display it). Then once i deleted permanently
   the code I still got some results – this time only the votes. So added something
   like:
 *     ```
       <?php if ($p->ID && get_post_status( $p->ID ) == 'publish') { ?>
   
                         		<li><a href="<?php echo get_permalink($p->ID); ?>"><?php echo $p->post_title;?></a><span class="count">(<?php printf($afb->_("%d гласа"), $p->positive); ?>)</span></li>
                         		<?php } ?>
       ```
   
 *  Plugin Author [Fumiki Takahashi](https://wordpress.org/support/users/takahashi_fumiki/)
 * (@takahashi_fumiki)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/two-issues-7/#post-5299071)
 * Thanx, alordiel.
 * I will fix them soon.
 *  Thread Starter [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/two-issues-7/#post-5299076)
 * Thank you for your time, Takahashi.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Two issues’ is closed to new replies.

 * ![](https://ps.w.org/anyway-feedback/assets/icon-256x256.png?rev=3059091)
 * [Anyway Feedback](https://wordpress.org/plugins/anyway-feedback/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anyway-feedback/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anyway-feedback/)
 * [Active Topics](https://wordpress.org/support/plugin/anyway-feedback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anyway-feedback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anyway-feedback/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alordiel](https://wordpress.org/support/users/alordiel/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/two-issues-7/#post-5299076)
 * Status: not resolved