Tony Hayes
Forum Replies Created
-
@jaxrachel Thanks for reporting, this issue was picked up earlier by another user and is currently patched in development version:
https://github.com/netmix/radio-station/tree/develop/
We’re in the process of finalizing an official release so that should be out soon also, let us know if you experience further problems.
- This reply was modified 1 week, 4 days ago by Tony Hayes.
Yes you can add some custom code to change the rewrite slug of the show URLs from
/show/to/program/by filtering the custom post type registration:add_filter( 'radio_station_post_type_show', 'radio_station_rename_show_urls' );
function radio_station_rename_show_urls( $post_type ) {
$post_type['rewrite']['slug'] = 'program';
return $post_type;
}Then make sure to go to Settings -> Permalinks and Save to flush rewrites.
If you add what you did to change the individual pages I may be able to suggest another filter to make those changes persist with updates.
@paul-hartman You could add a filter like this to not create show pages automatically:
add_filter( 'radio_station_post_type_show', function( $post_type ) {
$post_type['public'] = false;
$post_type['has_archive'] = false;
return $post_type;
});
The problem with this is, if you have a show schedule it would be linked to the Show pages unless in the schedule shortcode you add an attributeshow_link="0"to disable that if you want, but it would mean users looking at the schedule couldn’t just follow a link to the Show page from there.Alternatively you could filter the show links for each show so that they link to the existing existing pages, but this might be a time-consuming thing to match the show IDs to those pages and maintain that.
add_filter( 'radio_station_schedule_show_link', function( $show_link, $show_id, $view ) {
if ( $show_id == 999 ) {$show_link = '/existing-show-page/';}
/* and so on for each Show ID */
return $show_link;
}, 10, 3 );- This reply was modified 8 months, 2 weeks ago by Tony Hayes.
@cmodyssey Yes, so the default Show schedule is weekly (so good for your 1st example), and in the free version you can Override by dates (so you need to specify each individual date, but it can be linked to an existing Show.)
However in the Pro version you can have Recurring Overrides that can be via weekly intervals of x (eg. every 2 weeks in your 2nd example or every 4 weeks in your 3rd example)…
Recurring Overrides can also be set to use the numbered day, the xth y-day of the month, for example the 3rd Wednesday of each month.
In either case you need to specify the start date from which the recurring override occurs and optionally you can add an end date as well. Hope that helps!
@eiwtech I decided this was an important enough issue to solve it once and for all. Manually bypassing page caches with a dynamic schedule isn’t something anyone should have to deal with! There are too many different caches and configs out there and it’s a pain to work out how to clear them.
As we’d already solved this same issue for widgets using AJAX loading for those, I went ahead and added that for the Schedule views also. 😀
This will be included in the next release (2.5.11) which will be out shortly, but is already up on Github if you want to test it sooner.
- This reply was modified 1 year ago by Tony Hayes.
@eiwtech Could I get some more details about this, I’m a little confused and need to be able to try to reproduce the issue to fix it. I don’t quite understand when you say “when it gets to Sunday” …
1. Do you mean when you click the tab, or when it is Sunday and looking at Monday?
2. What do you mean by “freeze” day and not date, when the day and date are in the same tab heading?This often happens in WordPress when there are two many columns for the screen width. One thing you can do is just zoom out. The other is to click the “Screen Options” tab in the top right and turn off any number of columns you don’t need to see all the time by unchecking them.
WordPress does this by default when a custom post type is registered with
has_archiveset, which Radio Station does. You can change this behaviour using a filter:add_filter( 'radio_station_post_type_show', 'custom_show_post_type_filter' );function custom_show_post_type_filter( $post_type ) {$post_type['has_archive'] = false;return $post_type;
}Alternatively if you do want the show archive somewhere else just give it another slug instead of the default
'shows'@vrishabhsk Thanks for reporting!
@east1 Here’s a filter for the host and producer post type registration to remove the public profile pages:
/* disable public host and producer profile pages */ add_filter( 'radio_station_post_type_host', 'custom_disable_profile_pages' ); add_filter( 'radio_station_post_type_producer', 'custom_disable_profile_pages' ); function custom_disable_profile_pages( $post_type ) { $post_type['public'] = false; $post_type['has_archive'] = false; return $post_type; }You’ll probably want to disable the redirection of author pages to profile pages also:
/* do not redirect links to profile pages */ remove_filter( 'radio_station_host_url', 'radio_station_pro_host_url', 10, 2 ); remove_filter( 'radio_station_producer_url', 'radio_station_pro_producer_url', 10, 2 );And maybe filter shortcodes/widgets to not link there either:
/* do not link to host profiles from widgets */ add_filter( 'shortcode_atts_current_show', 'custom_disable_profile_links', 10, 4 ); add_filter( 'shortcode_atts_upcoming_shows', 'custom_disable_profile_links', 10, 4 ); function custom_disable_profile_links( $out, $pairs, $atts, $shortcode ) { $out['link_hosts'] = 0; return $out; }Not sure if you are wanting to remove the Host/Producer/Team tab from the Show page also? I might just make this one an option as there is already a setting for combining them.
@djclewes32 @midwestbroadcasting @1980sbrady
Thanks for your patience. A fix has been pushed to the development version and will be included shortly in the forthcoming 2.5.7 hotfix release.
You can try the development version available on Github at https://github.com/netmix/radio-station/tree/develop/ or wait for the 2.5.7 release later today.
@sounds Apologies for missing this issue, you should be able to adjust the background color for the remaining time countdown like this:
.rs-countdown .rs-hours, rs-countdown .rs-minutes, .rs-countdown .rs-seconds {background-color: #111111;}Thanks for your patience. A fix has been pushed to the development version and will be included shortly in the forthcoming 2.5.7 hotfix release.
You can try the development version available on Github at https://github.com/netmix/radio-station/tree/develop/ or wait for the 2.5.7 release later today.
Closing this out here as continued via email.
The given URL doesn’t seem to be available any more. Can you provide another link please? We haven’t tested the plugin with Breakdance yet, but the shortcode for the schedule should work like any other WordPress shortcode does and any page builder should support that. Are you using the schedule as an automatic page, shortcode, widget or block?
It’s possible the way Breakdance loads the content, that the schedule javascript is not loading properly and so the clicks are not working. In a recent update (2.5.0) we added an extra check to try to help ensure some inline scripts are still loaded, can you let us know what version you are using?