Amit
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
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
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
WooCommerce, WordPress

Configure SMTP on WordPress without using a plugin

Using the WordPress API :Instead of using a third-party plugin to handle e-mail for your site, you can develop your own custom code and use the wp_mail() function in the WordPress API. The following procedure demonstrates how to send e-mail messages using SMTP authentication. The broader topic of how to…

Learn More

By Amit Bera

2 years ago
Share
Comments
WooCommerce, WordPress

How to create custom Gutenberg blocks in WordPress.

Follow the steps below on how to create Gutenberg block with code: Register Assets & Block Type Note: if you need to design edit-block on dashboard. create block-admin.css and must use “wp-editor-block” in array format. 2. The Basic Script The snippet below is a starting point for creating a custom…

Learn More

By Amit Bera

3 years ago
Share
Comments
View more