afiouni
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Tweet Import] Fatel Error on InstallationSOLVED
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 🙂
Forum: Plugins
In reply to: [Plugin: Tweet Import] Fatel Error on InstallationPlease 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…
Forum: Themes and Templates
In reply to: How to use trackback_url() function properly?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_urlHope this helps…
Note: not sure if it still works when permalink structure is customized!
/Kaf