It’s no secret that we used Gumroad to sell Meta Box extensions and then switched to FastSpring a few months ago. Both e-commerce platforms are great and easy to integrate with WordPress. There are some pros and cons of each platform that might be suitable in different cases, which I’m going to reveal in this post.
Are you getting stuck on placing a banner on all pages of the website as well as customizing the size, title, image, … on the banner? Don’t worry, this can be done easily by creating a settings page on the back end, and then add some custom fields. Each custom field is a parameter to customize the banner. After that, just use a shortcode to display the banner on the page you want.
Adding the pagination and the search box feature on the back end will be useful for WordPress users in many cases. Especially in the page / post editor of WordPress, you need to choose details like background image, colors, … for your Gutenberg blocks sometimes. It doesn’t matter if you only have a few options. But when there are dozens of options, you should definitely add the pagination and the search box to find them easily.
If you’re using WooCommerce to build your eCommerce WordPress website, you should definitely utilize the variable product feature of this plugin. This feature is very useful because it helps you add a set of variations to one product. Thus, it’s more flexible and convenient for you to manage your selling items.
Application Passwords is a new feature in WordPress version 5.6. It’s used to make authenticated requests to various WordPress APIs. However, this feature can be utilized by bad guys to gain control of your website. Therefore, it’s recommended to turn off this feature when you upgrade your website to WordPress 5.6.
When working with PHP projects, developers often have to manage many libraries from third parties. But installing and updating these libraries are quite complicated. To solve this problem, you can use Composer and Autoload to save time and effort.
When creating content, there might be a situation when many users contribute to writing a post. Normally, authors will list their names as contributors. But if you do it manually, that may take time. So why don’t you try creating a contributors list automatically to save time? To do it, we can get the list of users who edited the post in Revision, then display it on the posts page.
If you’re using an Apple device, when browsing a website, you can phone or chat directly with that site’s owner to request or ask for services / information right on the website. It’s so convenient thanks to the Apple Messages chat feature that is only available on Apple devices. Thus, website owners should absolutely take advantage of this useful feature to improve the experience of Apple users.
Let’s find out how to add the Apple Business Chat button to your WordPress websites. Note that if users don’t browse the internet by iPhone, iMac, iPad, Macbook, etc, this feature will be hidden.
In part 1 of this series, we learned about how to get posts by custom fields in WordPress with the
WP_Query function. However, if we need to deal with databases, it’s better to find another faster, easier, and more convenient way. That method is joining
wp_postmeta tables together, and then querying by SQL. In part 2 of the series “How to get posts by custom fields in WordPress”, we’ll use this way to add the advanced searching feature that allows users to search by keywords in posts / pages titles and custom fields content.