$50 beer for wordpress dev question solution

by Joe721
1 replies
Hi,

I just cannot get my head round this. New to wordpress, ok with php:

I'm using a filter for the content to detect a string and take action if it exists, this works just fine. Different posts will have different strings, and unique action is taken depending on that post's string. The problem is when you switch on the widget 'recent articles' and then all that content is also filtered, producing unpredicatble results. I need to detect whether the content that is being filtered is the actual post, not the recent articles.

In other words how do I detect a post within the content if the content includes all the excerpts?
#$50 #beer #dev #question #solution #wordpress
  • Profile picture of the author praskuma
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[120204].message }}
    • Profile picture of the author Joe721
      Thanks, but you should re-read the question, especially the part where I mention that I am already using a filter. It is a little more complex than the code you post to say the least. In any case, I have found a workaround to this issue now, and the offer can be closed, but thanks anyway.
      Signature
      OptinPlayer: www.optinplayer.com
      The most Interactive web video player with
      events, a
      nalytics, security & much more
      Advanced DHTML Popup www.dpopup.com
      WordPress Popup Plugin www.wordpresspopupplugin.com
      {{ DiscussionBoard.errors[120243].message }}

Trending Topics