Amit

Blog

Explore insightful information, expert tips, and industry trends on this blog page. Stay informed and inspired with the latest updates I share!

Photo-about
WordPress

How To Create a filter gallery using ACF gallery field

Step 1: First We need to create a gallery field Step 2: Add images on your gallery field. after that click on individual image and set image title (title name show as a filter name) Step 3: Now we need to create gallery filter. so open your theme file (where…

Learn More

By Amit Bera

2 years ago
Share
Comments
WordPress
Uncategorized

How To Enable or upload SVG files in WordPress Media without a plugin

If you prefer getting your hands dirty to using a plugin, you can manually enable your WordPress site to accept SVG files. Next, we’ll take a look at how that process works.Edit Your Site’s Functions.php File Step 1 : Edit Your Site’s Functions.php File To get started, you’ll need to…

Learn More

By Amit Bera

2 years ago
Share
Comments
WordPress

Display Gallery Results Based on Current Year and previous year using CPT

1) create custom post type function for gallery 2) Gallery page (page-gallery.php) (only show current year post) 3) now we need to create a sirebar for gallery pages (sidebar-gallery.php) 4) Gallery archive page (archive-gallery.php) (this page use for showing previous year and month post) 5) Create a details page for…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce, WordPress

How to insert contact form 7 data into mysql database in wordpress

First you need to Create a table and add fields example “contacts” and table fields are below id , form_id, first_name, last_name, email_id, phone_no, subject, message, date if you not able to create any table. just copy the below code and pest in to your functions.php file function ab_create_table_contact_form() {…

Learn More

By Amit Bera

2 years ago
Share
Comments
WordPress

How to get current page slug and post slug

get current page slug get current post slug if you want to compare current page and post slug

Learn More

By Amit Bera

2 years ago
Share
Comments
WordPress

How to Send an Email on ACF Form Submission

The following code emails a particular person whenever an ACF Form is submitted. It’s a slight modification of the example at the bottom of this page. Since I’m dealing with three forms with different fields, I do some if statements to gather and append various fields if they exist. In this…

Learn More

By Amit Bera

2 years ago
Share
Comments
WordPress

How to set up User email verification after Signup?

First You’ve to create two user meta call activation_code and account_activated You’ve to copy and paste the following code to the theme functions file: Theme Function File (function.php): You can locate this file in the Theme of the WordPress website. You can edit this file from the WordPress dashboard through…

Learn More

By Amit Bera

2 years ago
Share
Comments
Uncategorized

Duplicating a Page and Post in WordPress Without a Plugin

Of course, you don’t have to use a plugin to clone a page or post in WordPress. This can also be done manually, by either editing the funtions.php file or copying and pasting the relevant code. You’ve to copy and paste the following code to the theme functions file: Theme…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce, WordPress

How to hide media uploads by other users in WordPress

This code hides all posts and media that do not belong to the currently logged in author (you can change it to apply to other user roles). It also fixes the post and media count on the filter bars (e.g. All | Images | Videos | Unattached). You’ve to copy…

Learn More

By Amit Bera

2 years ago
Share
Comments
View more