• drinkonlyscotch

    (@drinkonlyscotch)


    I’m building a WP site that features recipes on nearly all posts. I’m using a link which opens the recipe in a thickbox window, like so:

    <a class="thickbox" href="#TB_inline?height=600&width=600&inlineId=post" title="<?php the_title() ?>">View Recipe</a>

    The problem is, not every post has a recipe. So I would like a way to only display my “View Recipe” link if a div with the #recipe id exists. Any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter drinkonlyscotch

    (@drinkonlyscotch)

    Obviously, I would like to avoid requiring the author to paste code into posts with recipes, which would also require a php-exec plug-in or something similar.

Viewing 1 replies (of 1 total)
  • The topic ‘Situational Custom Fields’ is closed to new replies.