Horje
A simple 'related posts' plugin that lets you select related posts manually. Wordpress Tutorial

Noted That:

  • To install correctly this related.zip .
  • Fisrt Download the related.zip to your computer
  • Extract/Open related.zip to Your Computer.
  • Then, Find readme.txt file inside related.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " related.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " related.zip "  Downloaded plugin from your computer, Where you downloaded related.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Related " folder is added on left sidemenu. Now, Click on " Related " folder.

   Noted that: If you do not see " Related " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Related Configurtions and Settings or How to work " Related " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Related " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Related
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Option 1 – Automatic install

Use the plugin installer built into WordPress to search for the plugin. WordPress will then download and install it for you.

Option 2 – Manual install

  1. Make sure the files are within a folder.
  2. Copy the whole folder inside the wp-content/plugins/ folder.
  3. In the backend, activate the plugin. You can now select related posts when you create or edit blog posts, pages etc.

How to display the related posts on your website

The related posts are displayed by adding



show( $post_id ); ?>

to your template. Replace $post_id with a post ID. If you call it within the WordPress loop, you can use



show( get_the_ID() ); ?>

You have the option of either outputting a pre-formatted list or returning a PHP array of related posts to customise the
markup yourself.

Examples

Example 1: Using the default output



show( get_the_ID() ); ?>

This can be called within the WordPress loop. It will output a

    list with links.

    Example 2: Returning an array

    
    
    show( get_the_ID(), true );
    ?>
    
    

    Example 3: Using a simple foreach loop

    With the second argument set to true, it will return an array of post objects. Use it to generate your own custom markup.
    Here is an example:

    
    
    show( get_the_ID(), true ); // Display the title of each related post if( is_array( $rel ) && count( $rel ) >
     0 ) { foreach ( $rel as $r ) { if ( is_object( $r ) ) { if ($r->
    post_status != 'trash') { echo get_the_title( $r->
    ID ) . '
    '; } } } } ?>

    Example 4: Using a WordPress loop

    If you want to run it with a real WordPress loop, then use it as follows. You can then use functions like the_content or the_excerpt.
    But make sure you don’t use the content filter for related posts, because you might get an endless stream of related posts that are related to each other :).

    
    
    show( get_the_ID(), true ); // Display the title and excerpt of each related post if( is_array( $rel ) && count( $rel ) >
     0 ) { foreach ( $rel as $r ) { if ( is_object( $r ) ) { if ($r->
    post_status != 'trash') { setup_postdata( $r ); echo get_the_title( $r->
    ID ) . '
    '; the_excerpt(); } } } wp_reset_postdata(); } ?>

    Example 5: Using Related_du plugin

    Using the default output from the Related (Doubled Up) plugin:

    
    
    show( get_the_ID() ); ?>
    
    

    This can be called within the WordPress loop. It will output a

      list with links.


related , posts , simple , select , manually , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference