Support » Plugin: Quick Page/Post Redirect Plugin » "Open new window" function for tag page redirects

  • Hi there,

    I’m using the plugin already for posts & pages.

    Now I managed it to create a redirect for tag pages using get_term_meta() and wp_redirect() and I was curious if I could use/call the the plugin’s “open new window” functionality within this redirect. The code is:


    if (function_exists('get_term_meta'))
    {
    $extURL = get_term_meta($term_id, 'external-url', true);
    if($extURL) wp_redirect(clean_url($extURL));
    exit;}

    As for the get_term_meta() to work I installed the ‘AY Term Meta’ plugin.

    https://wordpress.org/plugins/quick-pagepost-redirect-plugin/

Viewing 1 replies (of 1 total)
  • Unfortunately, in order for the ‘open a new window’ to work, a redirect has to be added via the plugin.

    Regards,
    Don

Viewing 1 replies (of 1 total)
  • The topic ‘"Open new window" function for tag page redirects’ is closed to new replies.