Title: Error editing related posts
Last modified: August 21, 2016

---

# Error editing related posts

 *  [parmendil](https://wordpress.org/support/users/parmendil/)
 * (@parmendil)
 * [12 years ago](https://wordpress.org/support/topic/error-editing-related-posts/)
 * Hi! I found an error while editing “related posts”. The plugin was trying to 
   use a Javascript and a CSS file that weren’t linked properly. I found that in
   the init.php there was an error (as I see) in the declaration of two variables.
   This is the correction:
 * Linke 457:
 *     ```
       // declare this two variables OUTSIDE of the if(..)
       	$static_url = plugins_url('static/', __FILE__);
       	$theme_url = plugins_url(WP_RP_STATIC_THEMES_PATH, __FILE__);
       	if ($options['enable_themes']) {
       ```
   
 * Hope this solves the problem for anybody else.
 * [https://wordpress.org/plugins/wordpress-23-related-posts-plugin/](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/)

Viewing 1 replies (of 1 total)

 *  [PetraP](https://wordpress.org/support/users/petrap/)
 * (@petrap)
 * [12 years ago](https://wordpress.org/support/topic/error-editing-related-posts/#post-4881653)
 * Hey parmendil,
 * really big thanks for the bug report and the bug fix! It will be implemented 
   in the next release.
 * Once again — thanks for your valuable feedback, truly appreciated, take care 
   and have a nice day!
 * Best,
    Petra

Viewing 1 replies (of 1 total)

The topic ‘Error editing related posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-23-related-posts-plugin_7b9a7c.
   svg)
 * [WordPress Related Posts](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [PetraP](https://wordpress.org/support/users/petrap/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/error-editing-related-posts/#post-4881653)
 * Status: not resolved