Tag: WP

  • Return the Template Name of Current WordPress Page

    Return the Template Name of Current WordPress Page

    WordPress save the assignment in the post_meta table and so it is easy to get the template name with the default function to return post meta data – get_post_meta(). The key for the value is _wp_page_template.

  • Remove Inline Style Of WordPress Gallery Shortcode

    Remove Inline Style Of WordPress Gallery Shortcode

    Today I’ll give you a small tip for the WordPress Gallery. With version 3.1 of WordPress it is possible to replace the inline style of the core, it’s done easily with a Filter-Hook. Use this and include your custom style with the Theme in your frontend; no Plugins, CSS or functions in your Theme for…

  • Comment Length Limiter

    Comment Length Limiter

    If you have used Twitter, then you know that you are only allowed to type 140 characters in a single Tweet. There is a nice little number below the text field indicating how much is left to write.

  • Pretty permalinks without mod_rewrite

    Pretty permalinks without mod_rewrite

    There are still some third-class web hosters who do allow the .htaccess files … and turn off the standard module mod_rewrite. But without mod_rewrite, WordPress cannot use pretty permalinks, right? Wrong! There’s another directive we can use: ErrorDocument. ErrorDocument 404 /index.php This will do almost the same as the rewrite rules WordPress offers. It will…

  • Advent Calendar – WordPress Editor: Preserve the scroll position

    Advent Calendar – WordPress Editor: Preserve the scroll position

    WordPress has a nice editor, with which are several hundreds of articles written daily. But in my opinion the editor has an usability issue. Every time you save a post the scroll position of the editor will be on top again. If you want to continue writing the post you have first to find he…

  • Advent Calendar – Only Update The Core – The Fast Way!

    Advent Calendar – Only Update The Core – The Fast Way!

    Same procedure as every year! Most of our readers already know of our Advent Calendar tradition, which we have every year before Christmas. What exactly an Advent Calendar is all about, that is explained on this post. We open a door every day, which contains a little gift for our readers, by providing them a…