simoreds
Forum Replies Created
-
Forum: Plugins
In reply to: [Better Internal Link Search] Adding shortcutsHi again, actually it is not that it didn’t work but it actually gave me a fatal error when opening the blog page:
Fatal error: Call to undefined function add_filter() in /var/www/vhosts/gate-away.com/httpdocs/news/wp-includes/functions.php on line 4202
that was by doing what I pasted in my previous post
Forum: Plugins
In reply to: [Better Internal Link Search] Adding shortcutsHi Brady,
Thank you very much for your reply.
I tried to do what you said but it didn’t work, I’m sure I’ve done something wrong, I’m quit newby to wp so please forgive me.. ??
I added the filter to the bottom of the file function.php and changed the few parameters you told me to modify, here’s the last bit of the page with at the end your script:
…..
if ( $reset && $encodings ) { $encoding = array_pop( $encodings ); mb_internal_encoding( $encoding ); } } /** * Resets the mbstring internal encoding to a users previously set encoding. * * @see mbstring_binary_safe_encoding() * * @since 3.7.0 */ function reset_mbstring_encoding() { mbstring_binary_safe_encoding( true ); } function prefix_simo_shortcuts( $shortcuts ) { $shortcuts['tuscany'] = array( 'title' => 'Tuscany', 'permalink' => 'https://www.gate-away.com/property_region.php?region=16', ); return $shortcuts; } add_filter( 'better_internal_link_search_shortcuts', 'prefix_simo_shortcuts' );
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Please can you tell me where I did it wrong and can you make also a sample on how to do it and how to add other shortcuts?
Thank you very much