• Here’s my issue:

    I’m coding a blog for a client that will have two types of posts/articles. One will be primarily text-heavy and the other simply embedded video. On the index page, I’d like to include an excerpt or summary for the text-heavy posts with a “Read More…” link, but leave the video posts full-length. I’ve been scouring the internet for the past couple of hours trying to find a suitable solution, but the fact is I’m not quite knowledgeable enough about PHP to figure it out myself.

    Is there a way to write an “if” statement for “Read More…” links?

    Here is the simple line of code I’m working with now:

    <p class="more alignr"><a href="<?php the_permalink(); ?>#content" title="Read the rest of <?php the_title(); ?>">Continue reading...</a></p>

    Let me know if anyone has any tips or insight. I appreciate anything I can get.

    Best,
    b

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Optional “Read More” Link’ is closed to new replies.