Forums

How to add span inside wp_get_archives (5 posts)

  1. kaotik
    Member
    Posted 2 years ago #

    I am trying to add a span class inside the wp_get_archives tag. How do I do this or can it even be done? So far this is what I have, but the span does not show, only the output of post titles:

    <?php wp_get_archives('type=postbypost&limit=4&format=html','<span class="read_more_home"> Read More</span>'); ?>

  2. Why not this:

    <span class="read_more_home"><?php wp_get_archives('type=postbypost&limit=4&format=html',' Read More'); ?></span>

  3. kaotik
    Member
    Posted 2 years ago #

    Thanks for the feedback, I tried this and the 'Read More' still does not show, only the post titles. It's completely ignoring this call. Is there a different "read more" call that it needs to draw from?

  4. Well, looking at this: http://codex.wordpress.org/Template_Tags/wp_get_archives You can't pull read-more.

    I mean, it's not a valid call.

    Why are you trying to add 'read more' to the call? To paginate or for some other reason?

  5. kaotik
    Member
    Posted 2 years ago #

    Okay, I wasn't sure if it was possible. No, it was just a visual thing for readers to know they can click on the title block.

    Thanks for your help though!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.