Display all Active WordPress plugins
Here is a simple WordPress plugin that will create a [activeplugin] shortcode: Add it as plugin and activate, then add shortcode [activeplugins] anywhere on your website and it will display all active plugins:
Here is a simple WordPress plugin that will create a [activeplugin] shortcode: Add it as plugin and activate, then add shortcode [activeplugins] anywhere on your website and it will display all active plugins:
I have a WordPress blog on pcelarstvopejcic.com/blog and a few pages that I would like to move to the domain document root, so that: pcelarstvopejcic.com/blog/contact becomes pcelarstvopejcic.com/contact pcelarstvopejcic.com/blog/shop becomes pcelarstvopejcic.com/shop So this way I only have one WP installation and blog posts would be accessible via pcelarstvopejcic.com/blog/POST and pages in pcelarstvopejcic.com/PAGE To do this, edit … Read full article →
Step 1. Add the following inside your theme functions.php file or create a new Child theme first and add the code to it: Step 2. Add the shortcode [total_posts] anywhere on the website where you want to display the total number of posts: And it will display the number. 🙂
One of the most important checkout fields for online stores that is also prone to oversight is phone verification. Order confirmation and delivery can both be made much simpler with proper phone verification. In WooCommerce, the phone number field provides an HTML check for a straightforward number: But by ensuring that the number contains a … Read full article →
This WordPress snippet will add an “edit page” link on the WordPress posts and pages. Only users who are logged in and have the necessary rights to edit that page will be able to see this link (administrator or author). Add the snippet to the theme page where you want the link to appear, for … Read full article →
In this article, we’ll add the next and previous links on a WordPress theme. First We declare the previous and next variables: Then to show them inside the post, add the following snippets to the theme’s single.php file: If you want to further customize the links and maybe even display post name inside the links, … Read full article →
The following code snippet will automatically generate Alt Text for all featured images from the Post Title. If you are looking for more settings, check the SEO Friendly Images plugin.
The ‘Remember Me’ option is a checkbox on the WordPress login screen that lets your users save their username and password. If checked, WordPress will remember the login session for 14 days. If you want to disable the Remember Me option in WordPress, here is how to do it: 1. Hide the option using CSS … Read full article →
In this guide I will be adding a scroll percentage to a WordPress page. For a working demo please check this page. Step 1. Add HTML code First step is to add the HTML code that will display the scroll percentage number inside the page or theme header. in this example I’m adding it to … Read full article →
While developing a custom site I was in a need to represent how many minutes/hours/days the post was published ago instead of the published date. The logic of the code is simple: TIME DISPLAY less than 1 hour XX minutes ago 1 – 24 hours XX hours ago 24 hours – 7 days XX days … Read full article →