|
|
| Do you use custom post types and taxonomies? Do you want to list any related content, not just posts? Wordpress Tutorial |
Noted That:
|
Start the Tips:1. First Download " better-related.zip " Plugin to your Local Computer. (Click Download) 2. Then, Login to your " yourdomain.com/wp-admin " Dashboard. 3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard. 4. Now, Click on "Upload Plugin" button.
5. Now, Browse " better-related.zip " Downloaded plugin from your computer, Where you downloaded better-related.zip According to Step – 1 Above then, click on " Install Now" 6. Now, Click on " Active Plugin" 7. Then, See left sidemenu. " Better Related Posts " folder is added on left sidemenu. Now, Click on " Better Related Posts " folder. Noted that: If you do not see " Better Related Posts " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ". 8. Now you configure yourself oR Watch video tutorial below about Better Related Posts Configurtions and Settings or How to work " Better Related Posts " in your WordPress site. oR After Activated Plugin According to Step-6 then,
|
| Guide |
|---|
|
If you have a big site keep in mind that installing this plugin will create a fulltext index for your posts, so the size of the wp_posts table can almost double.
How to place a related content list manually
If you don’t enable automatic display of related posts on the plugin options page (the very first setting) you’ll have to use the template tag How to build a custom loop of related postsHere is a short example how to build your own loop of related posts. This way you can add excerpts, post thumbnails etc.
Please notice that the posts won’t be ordered by score if you build a loop like this. To accomplish this you’ll have to sort the posts in $my_query manually. I have a relevant example on how to sort posts manually on my site. I’ll build something like this into the plugin in the future. How to evaluate different scoring methods
Logged in admins can get the results of all scoring methods by using the template tag
The scoring methodsContent to content, title to content and title do title are simple MySQL fulltext searches. Keywords to content and keywords to title do a fulltext search for a string that contains all terms a post has. If a post is in the category Fruits and tagged sweet a fulltext search for “Fruits sweet” will be performed. Terms against taxonomies searches for posts that have the same terms as the current one. By default only posts that use the same taxonomy are found. It is however as well possible to find posts that use a different taxonomy, by searching this other taxonomy for terms of the same name. See the examples below. How to use different configurations at the same timeIt is possible to use different configurations of the plugin at the same time. Let’s say you use the normal related content feature for your posts. But you also have a custom post type ‘venue’. To get a custom list of related venues use this:
It is imporant to define a storage ID, or the plugin will overwrite the scores for the standard posts with the scores for your custom configuration. The default storage ID is ‘better-related-‘, so you should avoid that unless you changed the default. To get a similar listing that includes related posts (from the built-in ‘post’ post type) use:
Now an example that shows off all configuration options available:
Notes:
Find posts related to a string
The template tag
I use this on 404 pages currently, see the paste for my dynamic WordPress 404 search form . In the future I will probably add a replacement for the built-in WordPress search to this plugin. mysqld configurationGenerally speaking, the plugin should work out of the box. However, there are two settings you might want to change, see the mysql full-text fine-tuning docs . ft_min_word_len controls the minumum length of words. This defaults to 4, which might be too small if you use acronyms like CSS, PHP etc. You can change or set that option to 3 in your mysqld config. You will have to re-build your fulltext indexes after doing this, use “REPAIR TABLE table_name QUICK;” where table_name is wp_posts on a default WordPress install. The second option could be interesting if your site is not in english and you want to improve search results. Use the ft_stopword_file option to create your own stopwords file. MySQL uses english stopwords by default. |
| custom , post , types , taxonomies , list , related , content , posts , tutorial , |
| Name |
|---|
Read Article https://develop.horje.com/learn/1434/reference