Category: WordPress Hacks

  • WordPress Category Exists?

    Already tried in WordPress to check if a category exists? There is no Template Tag so you need to create your own solution. I have 3 different solutions prepared, although one solution only works within the framework of the admin area.

  • Filter caption-Shortcode in WordPress

    The title may not speak for itself and therefore I will explain a little more on the topic and do not just put a code snippets on this post. If you use the „Mediauploader“ in WordPress not just to load images, but also for integration in the post or page, then a Shortcode will be…

  • Exclude Subcategories in a Loop

    This code snippet excludes the subcategories in a loop. Just insert the code in your functions.php of your theme or in a Plugin and you are done.

  • rel=”canonical”-URL for WordPress Theme

    Duplicate content is always an issue in search engines, especially in the context of content management systems and blogging applications. Therefore, they decided together (Google, Yahoo and Microsoft) for a notice using the link tag. In essence, provides the tag with the rel attribute canonical only a reference to the preferred URL. Once again a…

  • Secure Your Mail With WordPress Antispambot Function

    A little-known feature in WordPress is antispambot() from the wp-includes/formatting.php. It is a kind obfuscator of the email address. It doesn’t create a clickable mailto link. Our e-mail with antispambot in the source code looks like this:

  • Change your WordPress Theme on Dependency

    WordPress is sometimes not only in use as a blog platform, also as CMS application or for a presentation of photos or other purposes. Many times you like to have a different design depending on the purpose of your WordPress blog within your website. Thus, most of the photo blogs having a different design than…