Justwebdevelopment
  • Services
    • Magento Development
      • Magento Customization
      • Magento Theme Development
      • Magento Template Development
      • Magento Extension Development
      • Offshore Magento Development
    • WordPress Development
      • WordPress Theme Development
      • WordPress Plugins Development
      • WordPress Customization
      • WordPress CMS Development
      • WordPress Blog Development
    • Offshore Web Development
      • Offshore Magento Development
      • Offshore WordPress Development
      • Hire Dedicate Web Developers
    • PSD To Any
      • PSD To Magento
      • PSD To WordPress
  • Blog
    • Top 10 List
    • Magento
    • Magento2
    • WordPress
    • Shopify
    • Drupal
    • Woocommerce
    • Ruby on Rails
    • Laravel
    • PHP
    • Mobile Application
    • JQuery
    • SEO
    • Digital Marketing
    • Web Development
    • Web Hosting
    • Others
  • Portfolio
  • About Us
  • Contact Us
  • Advertise
  • Write For Us

Tag: Display related posts based on post taga

Home / Posts Tagged "Display related posts based on post taga"
23Apr 2011 by admin No Comments

Display Related Post in WordPress

Wordpress
You can display related post on any page or post in wordpress without any plugin. Related posts feature can be implemented without the help of any plugins in wordpress based on supporting tags. All we have to do is find the other posts with some same tags as the current post. Just open the single.php file in your wordpress theme and add this bit of code where you want the related posts to show up. [php] <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'showposts'=>5, // Number of related posts that will be shown. 'caller_get_posts'=>1 ); $my_query = new wp_query($args); if( $my_query->have_posts() ) { echo "<h3>Related Posts</h3><ul>"; while ($my_query->have_posts()) { $my_query->the_post(); ?> <li><a href="<?php the_permalink()…
Read More

Inquire Now

    • captcha

    Categories

    • Digital Marketing
    • Drupal
    • Ecommerce
    • JQuery
    • JWD Portfolio
    • Laravel
    • Magento
    • Magento2
    • Mobile Application
    • MySql
    • Others
    • PHP
    • Prestashop
    • Python
    • Ruby on Rails
    • SEO
    • Shopify
    • Technology
    • Top 10 List
    • Uncategorized
    • Web Development
    • Web Hosting
    • Web Services
    • Woocommerce
    • Wordpress

    JWD



    Recent Comments

    • strategic supply chain on Best Magento 2 Hosting Providers
    • Jennie Francis on How to Buy Instagram Followers: Explained Here
    • 슈퍼맨안마 on 10 Free video templates for eCommerce videos
    • slim36 forum on Top 10 Magento 2 Extensions
    • Best On Top of TV on Top 10 Magento 2 Extensions
    Tweet
    Pin It

    Popular Posts

    • Wordpress, Joomla or Drupal Choose Best CMS for Website Development
    • Reindex using Command line in Magento2
    • Use Movavi Screen Recorder to record videos in your PC
    • Do E-commerce the Magento way!
    • How to Raise More Money for Your Mobile App Startup

    Recent Posts

    • 9 Tips for Hiring a Shopify Development Agency
    • Maintaining Academic Curiosity: Fostering Lifelong Learning
    • How to Increase Website Traffic with SEO and Content Marketing
    • Green Web Hosting: What It Is and Why It Matters
    • Top Advantages of Hiring a Professional Web Design Agency

    Top 10 List

    • Top 10 Magento 2 Extensions
    • Top 10 Woocommerce Plugins
    • Top 10 Shopify Apps
    • Top Apps Of 2020 For Lonely People
    • Top 10 Shopify Themes
    • Top 10 Wordpress Themes
    • Top 10 Responsive Wordpress Themes
    • Expert Magento 2 Freelancers
    • Best Magento 2 Hosting Providers

    Follow Us!

    justwebdevelopmentFollow Us on Google+Follow Us on TwitterFollow Us on SkypeFollow Us on TumblrFollow Us on Google TalkFollow Us on WordpressFollow Us on Cuttings.meFollow Us on RSSFollow Us on E-mailFollow Us on DiggFollow Us on Reddit

    Quick Contact

      • captcha

      Tags

      Advantages of SEO Benefits of SEO Digital Marketing Ecommerce Site Ecommerce website development Expert Magento Developer Hire SEO Services Jquery help Magento2 Developer Magento2 Development magentocommerce Magento customization Magento Customiztion Magento Developer Magento Development Magento Development India Magento Development Services magento ecommerce Mobile App Mobile Application Mobile Application Development PHP Development PHP Development India PHP Web Development SEO SEO Benefits Of Blogging SEO Services SEO Services India Shopify Apps Shopify Development Shopify Store Social media marketing Top 10 list Top 10 web hosting Web design tips Web Developer Web Development Web Development Company Web Hosting Web Hosting List Website Development Woocommerce Development Wordpress Developer Wordpress Development WordPress Plugins Development
      • © 2011 justwebdevelopment.com
      • XML Sitemap
      • RSS Feed