This small Code Snippets is for those who works in WordPress blog with a picture and at all times wants to put one on his post. It can do the setting automatically. Mean, you can Set Featured Image Automatically with PHP Snippets. Using featured images in WordPress is easy and comparatively simple to set up even if theme doesn’t support the feature from score. If you think that option isn’t suit you then you can contrivance…
Hide private content from non users with PHP Code snippet, You can restrict non members to see any of your private content. This short code allows you to write a private content in a post. How to use: Add This code in your functions.php
This Snippet is supposed to add in single.php, index.php or any other template within the loop. Don’t you think it would be finest thing to display on post where you can show post like “1 hour ago, 2 hour ago, 1 day ago” etc. echo human_time_diff( get_the_time(‘U’), current_time(‘timestamp’) ) . ‘ ago’; via Codex , Thumbnail image via inspirationde
I am going to share quick easy snippet How to Automatically Set the Featured Image in WordPress that will set the featured image automatically by grabbing the first image of the post. You can select your own featured image as well. You just need to add this snippet to your theme’s function.php file.
In this post, you’ll came to know that how to create short code for custom post type with WordPress custom plugin. Custom plugin has been created to display custom post type by adding short code just before individual page. Custom post type for FAQ with name webr_faq can also be created. You just need to add the shortcode [rep posttype=’webrfaq’] in your page and replace it with custom post type name. Reference Source
Do you want to show or hide widgets on specific pages in WordPress? You can do this now. In this post we’ll let you know that how to show or hide widgets on specific pages without plugin. Now you can show or hide widgets on specific pages without using any plugin. This is tiny snippet which is added by Joel Worsham. Firstly you just need to have the ID name of widget which you want…
In WordPress theme, sometime you need to execute custom PHP code in widget to showcase the different information related to your category. Many plugins are available that do this, to add a new type of widget usually called PHP widget. But here you don’t need to install a plugin as it can be done by adding in functions.php file of your theme and these lines will turn by default text widget into a PHP enabled…
Ridiculously Responsive Social Sharing Buttons (RRSSB) performed SAS, so that you can easily customize by setting a small number of variables. SVGS allow small file size and supports the retina. Add or remove icons on your own – automatically fill in the rest of the container. Adding class to anchor tag structure for each action button to make participation in the dialogue open a popup window instead of in a new window. Demo Download…
This example shows you how to create custom tooltips, using just a pure CSS. In this examples we use “transform” feature of the CSS3 and some other tricks.
Many WordPress blog users forget to add featured image in their blog post while publishing their posts. If they remain forgetting to add the featured images, it would be time-consuming to re-edit those blog posts for assigning featured images. This Snippet will help you to have all those posts that required featured image before they publish. You just need to add this snippet to the functions.php of your WordPress theme. When you try to publish…
Today we share a PHP Code Snippets “Check valid email address”.
CSS Media queries are an outstanding way to provide distinctive styles to different devices that’s the most excellent experience for every user. A part of the CSS3 specification as the role of the media attribute has been extended by CSS media queries which helps to let you know that how to control the style you applied.
Video Backgrounds are a very desirable technique in web design today. In this snippet you can create Html5 Full screen background video with pure CSS & HTML5, there is no need for a framework.
Changing the text selection color is always a nice touch, it shows that you’re paying attention to the finer details of the site.
Today in this snippet we share a quick tip that will allow you to achieve some different looks for your selected text.
WordPress Pagination is a basic need for every websites using WordPress platform. There are many pagination plugin available. In this snippet I’m going to show you How to show WordPress Pagination without a Plugin.