Title: Wrong Post ID pulled by plugins with this theme
Last modified: August 30, 2016

---

# Wrong Post ID pulled by plugins with this theme

 *  Resolved [Duuk](https://wordpress.org/support/users/duuk/)
 * (@duuk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/)
 * I have two plugins that break -only when using this theme- that must use some
   specific type of javascript method for obtaining the post ID.
 * My blog is [mormonbandwagon.com](https://mormonbandwagon.com). The plugins are
   [Frontier Post](https://wordpress.org/plugins/frontier-post/) and [Inline Comments](https://wordpress.org/plugins/inline-comments/).
 * The worst result is that comments are posted on other posts than intended. I 
   don’t know javascript, so I can’t tell you what exactly is the cause. However,
   the plugin developers have only seen such a problem with this theme. As I mentioned,
   the plugins work fine when I switch themes.
 * Please let me know if you have any idea what part of your theme could result 
   in javascript returning the wrong post-id (1087 is the post ID being returned).
   Thanks.

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664033)
 * Can you show us a page with the issue?
 *  Thread Starter [Duuk](https://wordpress.org/support/users/duuk/)
 * (@duuk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664060)
 * Sure. Please look at [https://mormonbandwagon.com/reddit/thanks-tscc-thanks-for-nothing/](https://mormonbandwagon.com/reddit/thanks-tscc-thanks-for-nothing/).
   You can do a search for “1087” in the source and you should see where the wrong
   post is being grabbed. It should be 1149
 * I just figured out it is caused by the “Freak Recent Posts with Thumbnails” widget
   that comes with the theme. You can see the problem with the site now. Later this
   evening I will be removing that widget. Something wrong is happening when it 
   runs.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664062)
 * Are you sure it’s that page? I don’t see 1087 in the source code
 *  Thread Starter [Duuk](https://wordpress.org/support/users/duuk/)
 * (@duuk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664067)
 * Yes, I’m sure. You can try using the inline commenting system. Click on the +
   next to any paragraph. When you look at the source for the “Post Comment” form
   on the inline commenting system, you will see the wrong post ID, resulting in
   comments being attached to the wrong post.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664068)
 * Oh this probably requires us to sign up to your website and be logged in?
 *  Thread Starter [Duuk](https://wordpress.org/support/users/duuk/)
 * (@duuk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664091)
 * Looks like yes.
 *  Thread Starter [Duuk](https://wordpress.org/support/users/duuk/)
 * (@duuk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664297)
 * Well, you don’t have to make am account any more, but I have replaced your custom
   widget and that resolved the problem. I suggest you look into the widget coding
   on this theme.

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

The topic ‘Wrong Post ID pulled by plugins with this theme’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/freak/1.1.1/screenshot.png)
 * Freak
 * [Support Threads](https://wordpress.org/support/theme/freak/)
 * [Active Topics](https://wordpress.org/support/theme/freak/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/freak/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/freak/reviews/)

## Tags

 * [id](https://wordpress.org/support/topic-tag/id/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 7 replies
 * 2 participants
 * Last reply from: [Duuk](https://wordpress.org/support/users/duuk/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-post-id-pulled-by-plugins-with-this-theme/#post-6664297)
 * Status: resolved