Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Programming General (http://siteownersforums.com/forumdisplay.php?f=44)
-   -   How to add WordPress Related Posts Without Plugins (http://siteownersforums.com/showthread.php?t=151615)

BlurryFont 01-27-2015 02:58 AM

How to add WordPress Related Posts Without Plugins
 
I am currently working on a website programming. Its a WordPress site and i want to add related post option i single post. I have used lot of codes E.G

$main_actor = get_post_meta( $post->ID, 'main actor', true );
$main_actor = sanitize_text_field( $main_actor );

AND

$main_category = get_post_meta( $post->ID, 'main category', true );
$main_category = sanitize_text_field( $main_category );

but its not working. I don't want to add plugin. Anyone here can help me in this topic.

Here Is My Website

Related Post Example :- http://i.imgur.com/n5r0KoW.png


All times are GMT -7. The time now is 05:54 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.