Chuyên mục
Học WordPress
148 bài viết · trang 10/13
Easy Custom Feeds in WordPress
Now that we have seen how to setup Tumblr-style posts, it would be nice to be able to segregate the Tumblr-posts category from the main feed into its own, separate feed. This would...
How to Create Custom RSS Feeds in WordPress
WordPress comes with built-in default RSS feeds. You can tweak the default feeds by adding custom content to your RSS Feeds, or even adding post thumbnail to your RSS Feeds. The de...
How to fix Access-Control-Allow-Origin (CORS origin) Issue for your HTTPS enabled WordPress Site and MaxCDN
On Crunchify Business site we have enabled HTTPS from day one. Recently WordPress.comannounced 100% HTTPS enablement even for hosted domains at WordPress.com and that’s a great new...
Disable admin bar wordpress ( No Plugins )
show_admin_bar( false ); Placing the above line of code in theme's functions.php file will prevent the Toolbar from rendering on the front end of your site. You can also determ...
Disable Wordpress Auto Update ( No Plugins )
Add this code in function.php file // Disable Autoupdate add_filter( 'automatic_updater_disabled', '__return_true' ); function remove_core_updates(){ global $wp_version;retur...
Get Permalink By Page Name Or Slug
We used to write custom functions to return these values until we discovered you can pass get_permalink a function that will return the ID. Examples.. Get Permalink By Page N...
Customize the_archive_title() . No Plugins
Rebuild the title for all the variants used in the original get_the_archive_title() function: // Return an alternate title, without prefix, for every type used in the get_the_...
Load More Posts with AJAX. Step by Step Tutorial. No plugins.
Creating Load More button for WordPress is really simple. As an option I will show you how to load more posts on scroll When my blog subscriber asked me about a such tutorial, I...
HƯỚNG DẪN CÀI ĐẶT WORDPRESS MULTISITE
Việc cài đặt WordPress Multisite rất đơn giản mà chúng ta chỉ cần làm với 2 bước là xong. Trong bài hướng dẫn này mình sẽ làm trên một website mẹ với tên miền là thachpham.net, bạn...
Get a category name/slug/id for a post or archive page
<?php if ( is_single() ) { $cats = get_the_category(); $cat = $cats[0]; // let's just assume the post has one category } else { // category archives $cat =...
How to use HTML 5 Form Validation on Contact Form 7 Plugin ?
By default, the contact form 7 plugin uses ajax validation to check the form entries. You can instantaneously validate some common fields like email, text for blank or invalid entr...
Removing Paragraph Tags from the_excerpt(), Properly
You may have Googled “How to remove the p tags from the_excerpt()” or some variation and read through a bunch of results. There are some fancy workarounds, such as a stripping them...
Trao đổi về dự án của bạn!