WordPress.org

Ready to get started?Download WordPress

Forums

WPListCal
Link Question (2 posts)

  1. plaine
    Member
    Posted 3 years ago #

    Great plugin. I've got a question in regards to hardcoding links. I have this bit of code right now, which is nearly perfect for what I want:

    <?php echo wplc_show_events('table', '%START%: %LINKEDNAME%', 'M j', 3, false, -1, 'asc', true, 'g:ia', 'Sorry, no events'); ?>

    However, is there a way within that snippet to override the link created? For example, instead of the link going to the URL I've entered in the WPListCal admin, I'd like it to go instead to another link. Is that possible?

    The reason I'm trying to do that is that I have a sidebar with 3 upcoming events that this snippet displays. But instead of the 3 links going to the URL in the WPListCal admin, I'd like it to direct users to the page on my site that lists the entire calendar.

    Thanks!

    http://wordpress.org/extend/plugins/wplistcal/

  2. jonkern
    Member
    Plugin Author

    Posted 3 years ago #

    Ya, you can put the link into the event_format parameter and use %NAME% instead of %LINKEDNAME% as the link text.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags