Kwebble : Blog

  • Showing related articles in a WordPress blog

    Gepubliceerd op 16 juli 2009 in Programming.

    A few days ago I made a small change to the site. On pages showing a single article, the sidebar now shows a list of related articles on the site. By exposing these articles I hope visitors will find other interesting stuff to explore on this site.

    The WordPress plugins to add related articles I found seemed a bit to complex to me, so I was glad I found some PHP code to do the same. This code looks for other articles with the same tags as the displayed article. I changed it a bit into a separate part that retrieves the articles and a part to display them.

    The only thing I need to do now is to tag all the older articles, since I only started tagging recently.

    • php
    • wordpress

    Reactie:

    Annuleren

  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • A trim() method for the JavaScript String class
    • Is u iets opgevallen?
    • Tip: use the axis:axis:1.4 Maven artifact if you need Axis 1.4 support
    • Google Closure tools
    • Google en Microsoft indexeren tweets
  • Gerelateerde berichten

    • Simple Cloud API
    • Don’t forget __isset() with overloaded setters and getters
    • PHP tip: omit ?> from PHP only files
    • MySQL STRICT_TRANS_TABLES mode and truncated text values
    • Archives for a category WordPress plugin
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact