Archives for Wp Tips - Page 8
How to get first tag into a variable on detail page of a post
Sometime we need to fetch only the first tag of a post. We can add one or more tags in a wordpress post as per our requirement. Now in some cases when we are working on file and we need…
Solution to WordPress menu drag and drop conflict
Sometimes our wordpress menu drag and drop functionality stops working suddenly. Most of the times it is the result of Javascript concatenation used for admin area. As per this JavaScript files are concatenated to one URL to make admin faster.…
Add automatic paragraph tag to content
While writing in editor, if we want to add paragraph tag automatically in place of double line break. Then in that case we should use "wpautop" function. So the code becomes like this : wpautop($post->post_content);
Additional custom featured Image field for every page
In wordpress generally we have one featured image section for every page. If in a case we want to add another image field for pages without using any wordpress plugin then we need to put below mentioned code in specified…
Load Child theme CSS first
When we are working with child theme, we are having separate CSS for parent theme any child theme. Generally we face some design issues for instant of time when the website is loading. In this case the CSS which we need to…