Skip to main contentSkip to footer

Premium 1.7.1

Instant bug fix release that fixes the “Invalid argument supplied for foreach()” errors that cropped up in 1.7 when the MySQL column value was not set.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Adding direct links to outside pages to search results

…type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4′, ‘textdomain’ ), ‘items_list_navigation’ => _x( ‘Affiliate links list navigation‘, ‘Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation“/”Pages list navigation“. Added in 4.4′, ‘textdomain’ ), ‘items_list’ => _x( ‘Affiliate links……singular name’, ‘textdomain’ ), ‘menu_name’ => _x( ‘Affiliate links’, ‘Admin Menu text’, ‘textdomain’ ), ‘name_admin_bar’ => _x( ‘Affiliate link’, ‘Add New on Toolbar’, ‘textdomain’ ), ‘add_new’ => __( ‘Add New’, ‘textdomain’ ), ‘add_new_item’ => __( ‘Add New Affiliate link’, ‘textdomain’ ), ‘new_item’ => __( ‘New Affiliate link’, ‘textdomain’ ), ‘edit_item’…Hi, is there a way to add a link to another website when searching for certain keywords? We have a few affiliates and we want to include a direct link to their websites in the search results when certain terms are searched for. How would I go about this? A…

Indexing image alt texts

Relevanssi by default ignores image alt texts (and other tag attributes). That’s often the right thing to do because alt texts aren’t visible to users. Finding a post with a search term that only appears in an alt text may confuse a user. If your alt texts are well crafted,……they may help search. It’s not hard to make Relevanssi index the alt texts. Add this function to your site: add_filter( ‘relevanssi_post_content’, ‘rlv_index_alt_text’ ); function rlv_index_alt_text( $content ) { $content = preg_replace( ‘/<img .*?alt=”(.*?)”.*?>/is’, ‘ \1 ‘, $content ); return $content; } This function uses the relevanssi_post_content filter hook, which……processes all post content before Relevanssi indexes it. All the HTML tags are still in the content – Relevanssi removes them later – so it is easy to make changes. It is easy for this function to find all IMG tags with an alt attribute and replace the whole tag…

Related Posts:

Currently there are no related posts available.

Comment Section:

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed