Tag: PHP
-
Load A Stylesheet Only If Use Gallery
In relation to the better Gallery it is actually not necessary to load the stylesheet if there is no gallery, so it is worth it to check in advance whether the gallery will be used in the post or not. For this you have to parse the post which can be done in two ways.
-

Redirects To Another Page In WordPress Backend
WordPress allows using a function, to simple redirect to a URL, the function wp_redirect() enables to specify an address and a status. This makes it easy to realize a forward even in the backend of WordPress. Two different examples will illustrate this. The difference lies in the query of the URL, which will be checked.
-
Disable HTML Editor In WordPress
In contrast to the visual editor in WordPress, you can not disable the HTML editor. WordPress does not provide a user setting or a global option. Also, there is no hook, to disable the HTML tab above the editor when writing posts or pages. But there are users who do not need this tab and…
-
About WordPress Post Thumbnail
This is a complement to our previous post The Ultimative Guide For the_post_thumbnail In WordPress 2.9. In WordPress Version 2.9 probably the most discussed feature is the post thumbnail. Important for this function, it is only working when it is explicitly enabled in the theme. This can be done with the following little snippet in…
-
Optimize Syndication Frequenzy
Today a standard becomes 9 years old. But hardly ever noticed: The Syndication-Module 1.4.1 of RDF Site Summary 1.0. What is it good for? Apparently some of you publishing posts less than 10 times per day. Shame on you … not! WordPress, however, assumes that you can not even stop, so write it in the…
-
Display Private Posts to Logged in Users
Sometimes I use the function of private posting in WordPress. These contributions can only see the user who has created the post, or the administrator. To show all these article to users who are logged into the system, you can go different ways. But I’d like to highlight just two different ways. With custom fields…