• Resolved Paul Hartman

    (@paul-hartman)


    My client would like to disable the generation of automatic Show pages. We are considering switching from another plugin that doesn’t have auto pages so they already have a page for each show that has other content besides description (links to blog posts, images, etc.) that doesn’t fit into auto-generated pages.

    Also a way to disable auto-generating the show archive page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tony Zeoli

    (@tonyzeoli)

    @paul-hartman Automatic show pages in Radio Station PRO are linked to blog posts, episodes, hosts, ad producers. Since you’re using the open source version, you probably are unaware. See demo.radiostation.pro show pages, specifically the djtonyz show, which has all the interrelated elements.

    @majick777 will be able to further direct you on how to disable auto generated show pages

    Plugin Contributor Tony Hayes

    (@majick)

    @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 attribute show_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 9 months, 1 week ago by Tony Hayes.
    Plugin Author Tony Zeoli

    (@tonyzeoli)

    There has been no response for 4 months, so I am closing this ticket. Please open another ticket if you need additioal assistance.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.