Your cart is currently empty!
Author: Genx
How to duplicate posts and pages in WordPress
You can use a plugin called Duplicate Page.
[WordPress] How to notify by email when there is a login
It is best to use “Login Alert” in “SiteGuard WP Plugin“.
[WordPress] Why I separate posts and custom post types
The reason I started separating posts and custom post types stems from an experience I had with the WooCommerce Membership plugin in the past.
When I tried to write member-only articles using the WooCommerce Membership plugin, I discovered a significant bug. The issue was that even locked posts could be viewed via the WordPress app. I learned that this happened because the WordPress app retrieves “posts” using an API. As a result, if you write something as a regular post, it might be accessible through the WordPress app or Feedly, potentially exposing content meant to be kept secret.
With this in mind, I developed my current approach: articles that I want to announce updates for are categorized as “posts,” while those that I don’t want to announce updates for are categorized as “custom post types.” Although I’m not currently writing member-only articles, I might do so in the future. Moreover, there are times when I don’t want to announce updates for certain articles. In such cases, I use “custom post types” to publish those articles.
How to increase post title length limit in bbPress
By default, if the title is longer than 80 characters, an error will occur and you won’t be able to post, so I looked into ways to increase the length limit. Just put the following code in functions.php.
// Increase bbPress topic title length limit add_filter ('bbp_get_title_max_length','change_title') ; Function change_title ($default) { $default=120 ; Return $default ; }
How to attract traffic to a WordPress site without relying on Google
Attracting traffic to a WordPress site without relying on Google can be challenging but entirely possible by leveraging various strategies. Here are some effective methods to consider:
(more…)I discovered a free WordPress multilingual plugin.
It’s called Bogo. It’s the same author who created that Contact Form 7 plugin.
How to disable data export for users in BuddyPress
You can disable data export requests by putting the following code in functions.php.
add_filter( 'bp_settings_show_user_data_page', '__return_false' );
How to move categories in WordPress without belonging to multiple categories.
When you use Quick Edit in WordPress to move a post from Category 1 to Category 2, the post ends up belonging to both Category 1 and Category 2. To avoid this issue, it’s a good idea to use a plugin called Bulk Move.
How to fix pagination to be displayed vertically when using WooCommerce with cocoon theme
When the pagination is displayed vertically, buttons are difficult to press and the design is poor, so I looked into ways to set it horizontally. You can display it horizontally by going to Customize WordPress, going to Additional CSS, and inserting the code below.
.woocommerce-pagination .page-numbers {
height: auto;
width: auto;
}How to enable Gutenberg Editor in WooCommerce
If you put the code below in functions.php and save it, you will be able to use Gutenberg Editor with WooCommerce.
// Enable Gutenberg on Woocommerce function activate_gutenberg_product( $can_edit, $post_type ) { if ( $post_type == 'product' ) { $can_edit = true; } return $can_edit; } add_filter( 'use_block_editor_for_post_type', 'activate_gutenberg_product', 10, 2 ); // Turn on Gutenberg and enable taxonomy fields for woocommerce function enable_taxonomy_rest( $args ) { $args['show_in_rest'] = true; return $args; } add_filter( 'woocommerce_taxonomy_args_product_cat', 'enable_taxonomy_rest' ); add_filter( 'woocommerce_taxonomy_args_product_tag', 'enable_taxonomy_rest' );