Tag: PHP

  • Determine Path To Plugin and Content Directories

    If you like to write a Plugin and you want to keep it downward compatible, then check beforehand the constants, because since WordPress version 2.6 you can rename the folder wp-content and this will also change the path to the Plugin folder. Just a few lines of code are enough and you can work with…

  • Expand Search Results In WordPress

    The search function in WordPress is expandable by many WordPress Plugins. For every desire something. But in this post I like to introduce a little code snippet, which doesn’t give you any of these functionality but shows the user how many posts where found including their search query. With this little but nice help, it…