Forum Replies Created

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

    For all those who had a Parse error issue with Tweet Import, please upgrade to 1.3.1 as it implements a workaround for PHP 4… There is long technical explanation for this but, for now, this should help 🙂

    Please delete the plugin and try to reinstall it again… Installation should be smooth and straight forward. If not please do let me know what WP version you’re using and the theme you’re using as well…

    Seems the get_trackback_url does not take into consideration when a page is displayed and not a post as it always returns

    $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id;

    The page trackback should be changed to

    '/wp-trackback.php?page_id=' . $id;

    which worked fine for me.

    To fix this issue, add the following to your functions.php file.

    add_filter ('trackback_url', 'fix_page_trackback_url', 15);
    if (!function_exists('fix_page_trackback_url')):
    function fix_page_trackback_url ($trackback_url)
    {
      if (is_page()):
        return str_replace ('?p=','?page_id=', $trackback_url);
      else:
        return $trackback_url;
      endif;
    }
    endif; //fix_page_trackback_url

    Hope this helps…

    Note: not sure if it still works when permalink structure is customized!

    /Kaf

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