Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

conditional tag in hybrid hook plugin

  1. I added the following code:

    <br />
    <?php<br />
    if(is_page('57'))<br />
    the_post_thumbnail('full');<br />
    ?><br />

    to the 'before-entry' hook area in the Hybrid hook plugin page, with Exec PHP ticked, but the thumbnail doesn't appear.
    It does appear if I remove the "is_page()" condition
    What am I doing wrong?
    thanks

  2. You must be a logged-in exclusive member to view this reply.

  3. it still doesn't work.
    actually the page has several posts each with a thumbnail, also, I want to wrap it inside a div

  4. You must be a logged-in exclusive member to view this reply.

  5. Just to confirm that you are using the Hybrid theme? I don't think the link in your profile is - but you could very well be working on a new site at the moment.

  6. Justin

    the theme is skeleton, the hybrid child theme
    the page uses the Custom Query template with custom field Query : cat = 33

    can I use a filter hook on the_content instead?
    I tried that but it didn't seem to work either, maybe my code wasn't correct

  7. You must be a logged-in exclusive member to view this reply.

  8. Sorry if I'm not being clear :)
    I found a temporary workaround by using is_cat('33') as the condition which works.
    when the site is live, I'll let you know, it will be easier to explain.

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (188 posts)
  • Hybrid Theme (16,943 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,624 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,614 posts)
  • General Discussion (3,943 posts)