Tag: PHP
-
Advent Calendar- How to disable comments for WordPress pages in any theme
Usually you don’t need comments on pages. Unfortunately, WordPress doesn’t offer a separate option to leave comments on posts on and turn them off for pages. If your theme calls comments_template(); in its page.php and you don’t want to break automatic updates, you cannot just remove the function call, because it will be overwritten with…
-
Use Constants for deactivate the Editor in WordPress Backend
WordPress is known for, that several constants lie dormant in the core and often provide quick solutions. In this context I have recently come across two little strings in the core of the backend editor of WordPress and in the core for updating the system as well. As far as I know, all constants mentioned…
-
Replace p-Tag on Images in Content of WordPress
Personally I think the use of HTML5 makes sense and I like the new possibilities, also in the field of semantics. WordPress has a feature on delivering content that come from the editor – setting breaks and paragraphs. Since forever WordPress is the reason for that, not TinyMCE and the same applies to the integration…
-
How to Add and Deactivate the new Feature Pointer in WordPress 3.3
With WordPress version 3.3 comes with the Feature Pointer a well-known idea from other tools. We know this for example from Gmail or Google Doc where they notice you of new features, in which they point with bubbles to these new features. In WordPress 3.3, the Admin Bar has been redesigned successfully – I think…
-
Change the Search-URL of WordPress
With WordPress it is easy to activate readable URLs. Only the search page is not affected by the setting yet, it comes with the syntax ?s as default. But there is a solution to change the URL as you wish. The following example shows that even if you have permalinks activated, that the URL for…
-
Use WordPress Custom Post Type In CSS-Class for Styling
Today I would like to show you, how to assign CSS classes to custom post types for styling your website.