|
|
Click on a calendar date to view events on that day
Started by: BD
in: Toolset Professional Support
Quick solution available
Problem:
How to make a link to the single post in the Calendar View in a classic View.
Solution:
I added the [wpv-post-url] shortcode to show the post URL. Then I wrapped it in a div with a class:
[php] [types field='important-date' style='calendar'][/types] [wpv-post-url] [/php]
Then I added the JS code below to JS Editor to move that URL to the proper A tag that you made it bold:
[php](function($) {
$('div.calendar').each(function() {
var theURL = $(this).find('.the-post-url').text();
$(this).find('table a').attr('href', theURL);
});
})(jQuery);[/php]
|
|
2 |
7 |
4 years, 8 months ago
-
|