For my site delhi-fun-dos.com i have this widget on side bar bottom. It works fine but clicking on November at bottom takes me 404 error page
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>Hi,
The posts are showing up properly when I hover over the links in calendar, but when I click on them I get an error page. Is this because they are custom posts? Please help! Thanks!
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>when displaing current month the posts link gives me 404 page.
when i go to previous month i have 404 page clicking to the current month…
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>When using a custom post type, is it possible to assign a custom field with a “closing date” value to the date field that displays on the calendar? If so – which code would we need to change?
Thanks
Stan
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>I tried to adapt the code from this support thread in order to have the calendar links point to CPT slug URLs, but get strange results when I move the site from my local development environment to my live site.
Locally I have the site at https://wp.dev/subdir/
and a calendar URLs are on the form https://wp.dev/subdir/journal/2012/06/7
which points to the CPT slug URL and is correct.
When moved to the live server the WP installation resides in (the hypothetical domain) https://livesite.com/subdir
and the site at https://livesite.com. (WordPress Address (URL) and Site Address (URL) respectively under General Settings). There the calendar entries point to https://livesite.com/subdir/journal/2012/06/7
but should point to https://livesite.com/journal/2012/06/7
. I expect site_url()
to return https://livesite.com
but it seems to return https://livesite.com/subdir
. I tried refreshing permalinks but it doesn’t help.
I also get strange concatenated URLs when I replace site_url()
with a hardcoded string. I don’t understand why I get this behaviour. Could you help?
/**
* Find the Custom Post Type and replace the calendar day link
*/
function my_calendar_day_link( $url, $year, $month, $day ) {
$cpt = 'my_journal';
// Filter post types here
if ( !is_post_type_archive( $cpt ) ) return $url;
$slug = get_post_type_object($cpt)->rewrite['slug'];
return site_url() . "/" . $slug . "/" . $year . "/" . $month . "/" . $day;
}
add_filter( 'day_link', 'my_calendar_day_link', 10, 4 );
/**
* Find the Custom Post Type and replace the calendar month link
*/
function my_calendar_month_link( $url, $year, $month ) {
$cpt = 'my_journal';
// Filter post types here
if ( !is_post_type_archive( $cpt ) ) return $url;
$slug = get_post_type_object($cpt)->rewrite['slug'];
return site_url() . "/" . $slug . "/" . $year . "/" . $month;
}
add_filter( 'month_link', 'my_calendar_month_link', 10, 3 );
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>Hello,
Currently, on calendar widget a day on which post was added is highlighted but pressing on it you get 404 error. Is it possible to go to all posts (from selected taxonomies) which were published on that day?
https://www.ads-software.com/extend/plugins/post-types-calendar/
]]>