Support » Plugin: WP Calendar » [Plugin: WP Calendar] linktopost for widget

  • Hey everyone,
    I really like the new feature “linktopost”. But is it possible to add this option to the widget? So that the link to the synced post will be inserted.

    It would also be cool to hide links if there is no link for an event. Because otherwise there are always dead links – thats very confusing for the visitor.

    Greetings from Germany

Viewing 4 replies - 1 through 4 (of 4 total)
  • Deine erste Frage für mich zu beantworten hat mich einen Vormittag gekostet. Aber hier ist die Lösung. Im Widget änderst du die “Vorlage” in

    <strong><a href="{event_url; linktopost=false}">{event_subject}</a></strong><br />{event_startdate} {event_starttime} - {event_enddate} {event_endtime} @ {event_location}

    Dann wird direkt aus der Sidebar zum Post verlinkt.

    (Man müsste mehr PHP können …)

    Plugin Author faebu


    Hi lundj

    If you’re using the widget, the parameter {event_url; linktopost=1} creates the url to the post (if synchronised). if the event is not linked to a post, the url points to the single page view, where you can share more details – but you have to setup up the ‘single page view’.

    if you only want to show a hyperlink where there is a synchronized post, you cannot use the the widget and you have to code it by yourself.

    Hi Faebu, thanks for answering.

    Where can I setup the “single page view” for not synchronized posts?

    thanks in advance

    Plugin Author faebu


    calendar settings -> third tab (event page or something similar).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Calendar] linktopost for widget’ is closed to new replies.