Browsing Category

WordPress Plugins

WordPress Plugins, WordPress Tips

How to bulk delete thousands posts in WordPress

April 30, 2018

Have you been in a case which requires you to delete a ton of posts? If so, I won’t tell you about WordPress reset plugin because it will sweep out all of your site data, not only posts. There should be another way? Sure, let’s check it out in my blog 😉

First, bulk deleting posts by default WordPress function:

Currently, WordPress just display 20 posts per page in Dashboards > All Posts, which means you just can remove 20 posts at once. But you can increase this number easily by open Screen Options > Pagination: enter the Number of items per page as you need. Please note that the value must be less than or equal 999. However, I recommend you just enter the number less than or equal 99 to avoid an infinite page loading if your host is not powerful enough. And don’t forget to revert the posts pagination back to 20 when you’re done.

You can process the delete task more quickly, can’t you? Wait for a second, what’s about a thousand posts at one as I said before? Huh, you still need to do it better than that. Don’t be impatient. You will have the answer right now.

Second, using Bulk Delete plugin:

Actually, the plugin not only allows you to delete posts but also pages, attachments, users and meta fields in bulk based on different conditions and filters. In this example, I will focus on how to delete posts. Now, you can download the plugin at https://wordpress.org/plugins/bulk-delete/

Once the plugin is installed and activated, a Bulk WP menu appears on the WordPress Dashboard. In Bulk Delete Posts, there are many conditions for you to chose how do you want to remove your posts:

  • Delete posts by category
  • Delete posts by tag
  • Delete posts by custom taxonomy
  • Delete posts by custom post type
  • Delete posts by url
  • Delete all draft posts
  • Delete all pending posts
  • Delete all private posts
  • Delete all scheduled posts

The plugin performance is excellent comparate to the traditional delete method of WordPress. I deleted more than 2 thousand posts within minutes. Ahh, don’t forget this warning: “Posts deleted once cannot be retrieved back. Use with caution.”

If you still need more than that. Please take a look at these features of Pro Add-on such as:

  • Delete posts by custom field
  • Delete posts by title
  • Delete posts by duplicate title
  • Delete all scheduled posts
  • Delete all posts from trash

Although the Plugin provides comprehensive options and filters to perform the bulk deletion. You even have one more choice to remove posts by using PHP MyAdmin and it’s indeed a high-speed process. However, since deleting posts in the database needs technical skills, it’s just recommended for advanced users & developers.

 

 

WordPress Plugins, WordPress Tips

How to show/hide content on specific pages?

April 20, 2018

WordPress provides Conditional Tags to control how a content is displayed on template files base on specific conditions. However, when we need to do this on dynamic content, we cannot use original Conditional Tags PHP code. Don’t worry, WP Conditional Shortcodes plugin will help you to accomplish this.

Download and Install

You can install and active WP Conditional Shortcodes directly in WP Admin Dashboard, or download the plugin package from here.

How to use it?

As you know, WordPress has many conditional tags, but this plugin only supports some basic conditionals tags which comes in shortcode format. Every shortcodes would includes its contents if the condition is true.

Here’s the list of supported shortcodes matches with its conditional.

  • is_single – if showing a single post. Use the optional parameter “ids” to specify specific posts.
  • is_singular – if showing a single post or page.
  • is_page – if showing a page. Use the optional parameter “ids” to specify specific pages.
  • is_home – if showing the blog home.
  • is_front_page – if showing the front page of the site.
  • is_sticky – if the current post or page is ‘sticky’.
  • is_category – if showing a category-based archive. Use the optional parameter “ids” to specify specific categories.
  • is_page – if showing a page.
  • is_tag – if showing a tag-based archive.
  • is_tax – if showing a tag- or category-based archive.
  • is_author – if showing an author-based archive.
  • is_archive – if showing any archive.
  • is_year – if showing a yearly archive.
  • is_month – if showing a monthly archive.
  • is_day – if showing a daily archive.
  • is_time – if showing an hourly or shorter archive.
  • is_feed – if generating a feed.
  • is_search – if showing search results.
  • comments_open – if comments are open for the current post or page.

Especially, with  is_page, is_category and is_single shortcodes, you also can use ids=”” attribute to list of the ids that you want to apply the condition.

For example :

[is_page ids="76, 339"]hello[/is_page]

[is_category ids="5, 7"]hello[/is_page]

[is_single ids="94, 63"]hello[/is_single]

In the reverse, you can use prefix not_ before the shortcode name to negative the condition and use it as a if else condition with the positive condition.

[is_single]
This is only shown if showing just this post.
[not_single]
This is shown everywhere else.
[/is_single]
WordPress Plugins

Control the sidebar widgets more with Widget Options plugin

April 10, 2018

To gain more control over your widgets, there are a lot of plugins allow you do that, but in my opinion, Widget Options is one of the best ones. Using Widget Options, you can easily show or hide the widgets under various conditions just by checking the options. Let’s explore!

After installing Widget Options, you will see a new section on your widget settings that allows you control more over the widgets.Show/ Hide the widget on specific pages

You can choose which pages that the widget would be appeared or not. So you can add a post sliders to Home Page only as a header, or make each pages have their own header, or add the Members Listing widget on Login/Register page only…

Example of using Post Sliders widget for Homepage only as a header

Show/ Hide the widgets on checked devices.

Widget Options also provides the options to show/hide the widgets on Desktop/Tablet/Mobile. If your widget displays on Mobile not correctly like on Desktop, you able to hide this on Mobile only.

Align the widget

This plugin also allows you change the alignment of the widget without using CSS. Just select from the available options.

Add your own custom IDs (classes)

This option helps you make a widget unique within a lot of widgets (ID) or group the widgets (class). So you can easlily custom the widget by using CSS code for the specific widgets.

 

WordPress Plugins

Table of Contents Plus Plugin.

April 5, 2018

1. Feature

Table of Contents Plus plugin is to create a context specific index or table of contents (TOC) for long pages (and custom post types). More than just a table of contents plugin, this plugin can also output a sitemap listing pages and/or categories across your entire site.

2. Install

To install Table of Contents Plus Plugin:

  • Step 1: go to Plugins -> Add New
  • Step 2: Enter Keyword plugin in search box  and click on “Install Now” 
  • Step 3: Click on “Activate”
    3. Use  Table of Contents Plus Plugin to automatically create indexes in single post

  • Step 1: Access on Setting ->TOC+
  • Step 2: Configure Position, Show when and Heading text. Beside, You can setting more the  information in this tab
  • Step 3: Create  và Enter on Your Information Post. After, Click on “Publish”.=> The result displays as follow:
WordPress Plugins, WordPress Tips

Simple Way To Get Free SSL Certificates (HTTPS) For Your Website

March 28, 2018

Google finally released the official SSL Certificates (https) for website with custom domain how I can get it ? just follow this tutorial.

Using plugin: Really Simple SSL 

Description

Really Simple SSL automatically detects your settings and configures your website to run over https.
To keep it lightweight, the options are kept to a minimum. The entire site will move to SSL.

THREE SIMPLE STEPS FOR SETUP:

  • Get an SSL certificate (can’t do that for you, sorry).
  • Activate this plugin
  • Enable SSL with one click

Screenshot:

 

Congrats! Now your website has a unique SSL certificate which will surely enhance an extra layer of security to your website. Now check your website with https:// and enjoy free SSL.

I hope you like this in-depth guide/tutorial, and I’m sure that this tutorial will help you take your blogger blog to the next level and it will improve your ranking in all search engines. If you’ve got any problem or you’ve stuck on any step then feel free to ask in comments, and if you appreciate this post then, please do share this post to let more people know about this trick, after all, sharing is caring.

If you have any question, feel free to comment on the comment section down below.

WordPress Plugins

Hide “unnecessary” items from WordPress admin area based on user role

March 27, 2018

If you are finding a way to protect some sections in WordPress admin area, or just you think that there are some items/parts should be invisible for some specific user roles. Adminimize plugin is useful for you.

With Adminimize, you can hide most of the parts in admin area. It supports custom post types. It allows you add your own options using css selector.

The default options

After installing plugin, go to Settings > Adminimize to configure the settings. There are the available parts so you just check the boxes to hide.

  • Admin Bar Back End Options
  • Admin Bar Front End Options
  • Back End Options
  • Global Options
  • Dashboard Options
  • Menu Options
  • Widgets
  • Write Options- Post
  • Write Options- Page

 

(and other Write Options – custom post type if your theme has the custom post types)

Admin Bar from Backend

Adminimize- backend-admin-bar

Write Options – Course (custom post type)

Your own option

There are some deep parts which is not listed there and you need to add your own options to hide them.

As an example, I would like to make About Yourself section in User > Your Profile invisible for all the user roles. To do that, i added a custom option and name it About Yourself. Then add the css selector to hide exactly those parts. 

Before

After

Hope this article helps you manage your site better!

 

Wordpress Developer, WordPress Plugins, WordPress Tips

How to use URL field in Visual Composer

February 28, 2018

URL field of Visual Composer is “vc_link” param type. The user can use this field to search and add a link of post/page… link exactly and easy. Besides, that user can type link directly like another text field. Moreover, the user can add target attribute equal “_blank” to open link in a new tab and add rel attribute equal “nofollow” for SEO campaign.
Url Field Setting

1. Add the URL field to your custom element

Visual Composer already has an URL field and we only need to add it to custom code.

2. Manage and edit the HTML

3. Result and Complete Code

WordPress Plugins, WordPress Tips

How can users set avatar in WordPress

February 26, 2018

By default, WP does not allow directly uploading avatar image. So how can users use an image as their avatar?

There are two basic ways so users can set avatar themselves: Use Gravatar and Use a plugin.

  1. Use Gravatar

Gravatar is a service for providing globally unique avatars which be integrated into WordPress. In Dashboard > User area, you can see WordPress suggest you use Gravatar to change avatar.

To change your profile picture, go to https://en.gravatar.com/, sign in by WordPress account, then add your email and the image. The gravatar will be recognized where you use this email.

Moreover, Gravatar lets you add multiple emails.

  1. Use a plugin

Some membership plugins already have integrated uploading user avatar such as Indeed Ultimate Membership Pro, BuddyPress… So you do not need to find other plugins, maybe.

If you don’t like using Gravatar, no need to worry, there are a lot of plugins out there that can help you in this case. One of them is WP User Avatar plugin with interesting features such as:

  • Use image from Media Library as an avatar. This also mean uploading avatar just like uploading an image to Media Library by WordPress default.
  • Choose the avatar for the users who do not have a WP User Avatar image. You can choose showing user’s Gravatar or a default Avatar.
  • Support shortcodes to display or upload new avatar for users.
  • Allow Contributor and Subscriber upload their own avatar with the limitation of upload file size and image dimensions.

Besides, If you need further advanced features, you can consider to upgrade to WP User Avatar Pro version.

After installing WP User Avatar, you can see a section in User editor lets you change avatar.

If user profile page is styled by Theme My Login, that section looks from front end like this: