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. On this point also a small hint: if you will, that you not find[...]

Read More »

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[...]

Read More »

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[...]

Read More »

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. It would be nice to have this feature for WordPress comments too.[...]

Read More »

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 permylinks, right? Wrong! There’s another directive we can use: ErrorDocument. ErrorDocument 404 /index.php This will do almost the same as the rewrite[...]

Read More »

XML to Array

In terms of importing data is often set to be XML and have to pass an array in WordPress, which passes into the database. To get an array in PHP after parsing XML, you will always find a variety of threads and questions. In the following, therefore, a simple and[...]

Read More »

Debug enqueued Scripts and Styles in WordPress

WordPress can easily manage scripts and style sheets, a prerequisite is the use of the opportunities around wp_enqueue_script() and wp_enqueue_style(). A small function can help and returns the built-in scripts and styles. In the following is the function which will be output via hook in backend and frontend. Parallel I’ve[...]

Read More »