• Resolved macpheek

    (@macpheek)


    Hi, I am using the shortcode [vsel] to display my events.
    I want to have an excerpt on this page, and a link to click the the single page, how can I insert a link to the single page?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter macpheek

    (@macpheek)

    Also, is there a shortcode to display the event list instead of using a widget?? Thanks! ??

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Via the settingspage Settings > VSEL you can activate excerpt and a link to the single event page. Is this what you want?

    Guido

    Thread Starter macpheek

    (@macpheek)

    Hi, thanks I have managed to show a summary. I can see the title can link to the event page, is there any way to add a ‘read more’ link? Also is there a shortcode to show the event list instead of using a widget?

    Thanks

    Kelly

    Plugin Author Guido

    (@guido07111975)

    Hi,

    The read more button underneath the excerpt is a theme feature, I guess your theme doesn’t have that.

    What do you mean with your last question? The widget uses the same shortcode(s) as the one(s) for the page.

    Guido

    Thread Starter macpheek

    (@macpheek)

    Hi, how can I add this to my theme?
    Here is a link to my site https://kellymacphee.co.uk/adelaide/windsor-events/

    Thread Starter macpheek

    (@macpheek)

    Also what code do I need to put into my single-event.php file? I cannot see any instructions

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Wait, I was confused.. the event list has it’s own template, without read more buttons. You should add this feature to my plugin. In the shortcode files. But why should you because user can also click the event title link..

    I do notice the event title link gives a 404, please re-save your permalinks and try again. It should be solved then.

    About a single event page, by default the “single(.php)” template file is being used. But, themes can also include a “single-event(.php)” template file, which will be used to display the (single) event. It’s only useful to add your own “single-event(.php)” in case your single event is not displayed properly.

    Guido

    Thread Starter macpheek

    (@macpheek)

    Hi

    It is not obvious to all users that the title is a link, which is why I wanted a read more button.
    I have added a single-events.php page, but not sure what content to put in it to display the single post?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    In that case you should adjust my plugin files vsel-upcoming, vsel-past and vsel-current.

    Find this:

    
    $output .= '</div>';
    
    endwhile; 
    

    Add this directly above:

    
    $output .=  '<a class="vsel-read-more" href="'. get_permalink() .'">Read More</a>';
    

    And some CSS to add in Appearance > Customize > Additoinal CSS or to add in your child theme stylesheet:

    
    #vsel a.vsel-read-more {width:100%; clear:both; float:left;}
    

    Now you have a simple Read More link. You can style it like the way you want.

    So you don’t have to add a single-event.php file for that. Becasue it has nothing to do with a single event.

    Don’t forget to resave permalinks (I prefer to set it ons “Post name”).

    Guido

    • This reply was modified 8 years, 3 months ago by Guido.
    Plugin Author Guido

    (@guido07111975)

    Closing this topic because of no replies.

    Guido

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘link to single page’ is closed to new replies.