Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Brendan@Brilliant

    (@brendanbrilliant)

    Well, I figured out the issue was totally on my end. I had used is_home(); and !is_home();. This is what had caused the logic to be reversed because in Settings>Reading I had set a static page called ‘Home’ to be my front page. However, the blog page was still being treated as the home.

    I fixed it by using is_page('home'); instead.

    Thread Starter Brendan@Brilliant

    (@brendanbrilliant)

    I don’t know if it’s the best way of doing it, but that is intentional. Thickbox grabs the caption from the title attribute, which is inconvenient if you’re not coding static links. If you look at the code snippet above, you can see that’s coming from this portion:

    echo '<a class="thickbox" href="' . $large_image_url[0] . '" title="' . get_the_excerpt('echo=0') . '" >';

    I needed to do this to populate the caption area dynamically from the excerpt because 1.) I didn’t know of another way to enable captions, and 2.) The captions must support HTML characters.

    I hope I didn’t misunderstand you, thanks for your feedback.

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