Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 01-27-2015, 02:58 AM   #1
BlurryFont
Registered User
 
Join Date: Aug 2014
Location: India
Posts: 18
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
BlurryFont is offline   Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WTB Blog Posts on HEALTH related sites. PR3 + shakemelikeapig Wanted 6 04-05-2020 04:24 AM
101 Effective tips seo onlineperfume Search Engine Optimization 24 06-25-2018 04:00 AM
Simple way to remove empty paragraph tags in wordpress website posts arronmattwills Graphic Design 0 02-24-2014 09:02 PM


All times are GMT -7. The time now is 06:07 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.