Tag: Code
-
Exclude Posts and Pages in WordPress Search
Sometimes you don’t like to display every post and page on search results. Today I like to show you how to filter the search in your frontend. Therefore I add a filter to the query of WordPress and exclude the according posts or pages of the search.
-
Exclude Post from WordPress Feed
In a previous post I provide a solution on how to exclude certain categories from your feed. You can do the same with other content and I will show you in this post how you can exclude certain posts from your feed.
-
Simple Cache with the WordPress Transient API
Today is our last post of our Advents Calendar, we hope you enjoyed it. WP Engineer wishes a Merry Christmas to our readers! WordPress has an API that is explicitly designed for time-controlled storage of data – the Transient API. This API is designed to cache any data in the database and very simple to…
-
Simple Media Queries Tester
CSS Media Queries are getting more popular and the adjustment of the size of a website for different clients or the size of the browsers are more necessary. The Media Queries are a solution, which also have its advantages and disadvantages. It was a disadvantage, when using, that I couldn’t see all sizes at the…
-
Small Extension for the Media-Library
Small changes can sometimes work wonders. If you use the library and use a lot of pictures in the posts, the following small link in the library will surely help you. Thus, images can be easily reused. A link will be created so you can access the image directly and there is no need to…
-
Fix Empty Searches
One minor problem for any web site is duplicate content: the same resource is available under different URIs. Yes, we have <link rel=canonical>, but anything that prevents such cases is better. Today, let’s look at something, that most professionals never see: empty searches. You offer a search input field, and someone hits the submit button…