wpcoke.com
Exclude Sticky Posts from the Loop in WordPress | WPcoke
http://wpcoke.com/exclude-sticky-posts-loop-wordpress
WordPress snippets for Developers. Exclude Sticky Posts from the Loop in WordPress. September 9, 2013. Sticky Posts can highlight your featured content on your website. But there are certain places where you don’t want sticky posts to be on the top. So you need to. Tell WordPress to exclude sticky posts from a custom loop. In this article, we will. Show you how to completely exclude sticky posts from the loop in WordPress, and. How to take the sticky feature away from the post. Php $the query = new WP Qu...
wpcoke.com
How to Remove the_post_thumbnail class | WPcoke
http://wpcoke.com/remove-post-thumbnail-class
WordPress snippets for Developers. How to Remove the post thumbnail class. April 3, 2015. Have you ever been using the post thumbnail( ‘thumbnail’ ) in your WordPress develop process? If you want to remove the class that is automatically added.There is a simple but effective code snippet help you out. Add the following snippet to the functions.php of your wordpress theme to automatically remove any class. Function wps post thumbnail remove class($output) { $output = preg replace('/class=.*?
wpcoke.com
How to Remove /category/ From WordPress URL | WPcoke
http://wpcoke.com/remove-category-wordpress-url
WordPress snippets for Developers. How to Remove /category/ From WordPress URL. September 14, 2013. Do you want to be able to finally remove the useless /category/ in the url from your WordPress categories permalinks? If you use WordPress as a non-blog style CMS,removing /category/ is a good choice. By default WordPress shows category archives like that way:. As you can see, the category in the url is pretty useless. If you want to remove /category/ from the url, follow these two methods:. On February 11...
wpcoke.com
How to Disable Google Fonts in WordPress | WPcoke
http://wpcoke.com/disable-google-fonts-wordpress
WordPress snippets for Developers. How to Disable Google Fonts in WordPress. June 26, 2014. Google fonts are very more popluar, many developers employ it in WordPress theme,I have to say the WordPress dashboard also use google fonts.Now,there is a question that come in my head, how to disable google fonts in my WordPress? It is quite easy.Just paste the following code into the current theme’s functions.php file:. Now, gooogle font is disabled, but you should have a google alternative for WordPress. Add a...
wpcoke.com
How to inform user about comment closing time | WPcoke
http://wpcoke.com/inform-user-comment-closing-time
WordPress snippets for Developers. How to inform user about comment closing time. September 4, 2014. It might be a good idea for some users if the comments are closed automatically,so it might be needed to inform them about the remaining time. You can set WordPress to close comments after a certain number of days,so that prevent spammers from old articles with useless comments. Just paste the following code snippet to your current theme’s functions.php file:. This function is hidden in the. On Auto Login...
wpcoke.com
WPcoke | WordPress snippets for Developers | Page 3
http://wpcoke.com/page/3
WordPress snippets for Developers. How to Fix a Crashed WordPress Posts Table. April 26, 2014. Sometimes when you navigate to the All Posts or All Pages screen in the WordPress admin and find the WordPress posts table crashed, your first instinct is probably to freak out. What happened? This is often a symptom of a crashed posts table in the database. It is the interrupted writes to the database, but it can be easily fixed, so you should stay calm. How to Display Post Attachment Count in WordPress. How t...
wpcoke.com
How to create page when theme activation | WPcoke
http://wpcoke.com/create-page-theme-activation
WordPress snippets for Developers. How to create page when theme activation. August 21, 2014. If you are creating a new WordPress theme either for sale or for a client you may want to have it create a custom page or pages when the theme is activated. You know, this function is very useful and amazing. Paste the following code snippet to the functions.php of your theme will do that. Isset($page check- ID) { $new page id = wp insert post($new page); if(! Now the function you want is working.
wpcoke.com
How to Show or Hide Widgets on Specific Pages | WPcoke
http://wpcoke.com/show-or-hide-widgets-on-specific-pages
WordPress snippets for Developers. How to Show or Hide Widgets on Specific Pages. January 11, 2015. You may be need to show or hide widgets on specific pages, but you have no idea. This is a great little snippet that will do just that. You will first need to get the id name of the widget that you plan to define. You can do this be viewing the page source or using a web inspector tool to find the widget id. Paste the following code snippets to your functions.php file. This entry was posted in How-to.
wpcoke.com
WPcoke | WordPress snippets for Developers | Page 5
http://wpcoke.com/page/5
WordPress snippets for Developers. How to add featured image to RSS feed. March 17, 2014. It is useful to insert your RSS feed with images,the simplest way to do this is to include your post’s featured image in the feed content. How to add special characters to WordPress post. March 16, 2014. Do you know that WordPress has built-in support for finding and using special characters in your content? How to use Google Fonts with SSL and Non-SSL. March 15, 2014. How to open comment author link in new window.
SOCIAL ENGAGEMENT