Hi @wikvdw,
The URL of each item in the timeline just links over to the single announcement page. If you wanted to create a new URL field where you could specify a URL and then override the default link, you could do that using some of the filters and actions built into the plugin.
Another option would be to create custom ‘Read More’ links that link to whatever page you choose. Our documentation here should explain how that can be done:
https://www.wp-timelineexpress.com/documentation/not-announcements-read-link/
If you just wanted to change the layout of the announcement page, you could also customize those templates to your liking. We also have documentation article setup explaining how that can be achieved: https://www.wp-timelineexpress.com/documentation/customize-single-announcement-template/
Let us know if any of those options work for you!
Thread Starter
wikvdw
(@wikvdw)
Hello!
Thanks for your reply!
I am indeed trying to specify a URL that overrides the default link. But as you mentioned I do that by “using some of the filters and actions built into the plugin,”, but I am really unsure where I can find these filters and actions?
Thanks in advance for any reply!
Thread Starter
wikvdw
(@wikvdw)
Any update on this one?
Thank you
Hi @wikvdw,
You can use the following code snippet to add a drop down onto each of your announcements, that would allow you to select from your sites pages, and then link the announcement to that page.
The drop down field could also be converted into a standard text field that would accept a URL to any external website or custom URL. That should be a fairly solid starting point, if not a great solution for you.
Let us know if that works.
Thread Starter
wikvdw
(@wikvdw)
I see, thank you. But this only changes the ‘button’ link. Not the “Read More” link.
Can I change the “Read More” link?
That should change both the button in the center of the timeline, as well as the read more link (Unless you’ve somehow implemented a custom read more link and not wrapped it in the proper filters). Both the button and the read more links make use of the timeline_express_announcement_permalink filter, as seen here:
Button:
https://github.com/EvanHerman/timeline-express/blob/8af09cedbfa0506353eec474903142656df2e376/lib/helpers.php#L793
Read More:
https://github.com/EvanHerman/timeline-express/blob/8af09cedbfa0506353eec474903142656df2e376/lib/helpers.php#L470