Redirect Parent

This add-on for Broadcast redirects visitors of parent posts directly to the first available child post.

Therefore, the following requirements must be met:

  • The visitor must be viewing a single post
  • The post must be a broadcasted post with at least one child post.

The first linked child post is the redirection target.

Notes

For developers, if you wish to control which posts are redirected, use this filter which is called before the redirection takes place:

apply_filters( 'broadcast_redirect_parent', true, $parent_blog_id, $parent_post_id, $child_blog_id, $child_post_id );

This is similar to the Redirect All Children add-on, except the other way. Using both the add-ons at the same time will create an endless loop.

Where to buy

This add-on is a part of the following packs:

Comments

  1. How can I pick the first child subsite, if I broadcast more than 1 subsite? Can I customize the first child for bulk?
    1. I can add a filter to the code that allows you to hook into the decision and change it via a code snippet, if you wish?

    2. Thanks for the supportive feedback. I havr thought and rethought about how to handle the biz situation, so for now, I will collect all subsites to 1 site, thus not needed immediately. But I prbbly need the function in a few month.

Leave a Reply

Your email address will not be published. Required fields are marked *