Create A Folder If It Doesn’t Already Exist In WordPress Or PHP

Spread the Names

Spread the Names  <?php  if (!file_exists(‘home/public_html/example.com/wp-content/uploads/blog’)) {     mkdir(‘home/public_html/example.com/wp-content/uploads/blog’, 0777, true); } ?> According To Question: #mkdir php #check if directory exists php #how


Spread the Names
Read More

WordPress Post Views Count Without Plugin

Spread the Names

Spread the Names Step1″Add this code in current WordPress active theme in function.php file <?php function get_PostViews($postID){    $count_key = ‘post_views_count’;    $post_count = get_post_meta($postID, $count_key,


Spread the Names
Read More

How to Custom Pagination For Custom Post in WordPress?

Spread the Names

Spread the Names  There are very simple steps for Pagination for any type of Post in WordPress by Shortcode with Ajax.  Write this below code in you active WordPress theme’s funcntion.php file. ie: wp-contentthemestwentytwentyfunctions.php  Put


Spread the Names
Read More

How To Fix Email Spam Issue In Contact Form 7?

Spread the Names

Spread the Names  Some times Contact Form 7 gives  Error: An error occurred while trying to send your message. Please try again later. on form


Spread the Names
Read More

How To Create A Navigation Menu In WordPress?

Spread the Names

Spread the Names There are very simple steps to Create A Navigation Menu in WordPress. 1. You need to go in the Appearance » Menus


Spread the Names
Read More

I want to remove shortcode from content [vc_row][vc_column][vc_column_text]

Spread the Names

Spread the Names $content = get_the_content();  $content = preg_replace(“~(?:[/?)[^/]]+/?]~s”, ”, $content); $content = wp_strip_all_tags($content);echo $content;  ### OR ### $content = get_the_content();  $content = do_shortcode($content); echo


Spread the Names
Read More

How To Disable Automatic Updates in WordPress by Custom Plugin?

Spread the Names

Spread the Names Using a simple plugin. Did you know about automatic updates on the WordPress website? Some time Some Core, Plugins, and Themes are


Spread the Names
Read More

How to disable automatic updates in wordpress?

Spread the Names

Spread the Names Write below code in current WordPress themes in function.php /wp-content/themes/twentytwenty/functions.php/* Disable Automatic Updates in WordPress */function remove_core_updates(){ global $wp_version;return(object) array(‘last_checked’=> time(),’version_checked’=> $wp_version,);}add_filter(‘pre_site_transient_update_core’,’remove_core_updates’);add_filter(‘pre_site_transient_update_plugins’,’remove_core_updates’);add_filter(‘pre_site_transient_update_themes’,’remove_core_updates’);/*


Spread the Names
Read More

How to Replace Text of the_content in WordPress

Spread the Names

Spread the NamesIf you want to replace keywords and text in the_content? Add the following code to the functions.php file of your WordPress active theme


Spread the Names
Read More

Table ‘wp_posts’ is marked as crashed and should be repaired in

Spread the Names

Spread the Names( ! ) Warning: mysqli_query(): (HY000/1194): Table ‘wp_posts’ is marked as crashed and should be repaired in Spread the Names


Spread the Names
Read More

reCAPTCHA V3 Example in PHP

Spread the Names

Spread the Names <!DOCTYPE html> <html> <head> </head> <body> <?php ## reCAPTCHA V3 key define ## #client-side define(‘RECAPTCHA_SITE_KEY’, ‘reCAPTCHA_site_key’); // define here reCAPTCHA_site_key #server-side define(‘RECAPTCHA_SECRET_KEY’,


Spread the Names
Read More

Why type=”file” does not Work with Safari Browser? in Contact Form 7

Spread the Names

Spread the Names Note: Script Must be written in header <script>jQuery(function() { var input_file = []; jQuery(‘form.wpcf7-form’).on(‘submit’, function() { console.log(“——————————-“); var i = 0; jQuery(‘input[type=file]’).each(function()


Spread the Names
Read More

How To Create Shortcode In WordPress with parameters?

Spread the Names

Spread the Names <?php### the shortcode code add in theme’s functions.php file  ###// “do_shortcode” but without the wrapping <p> of Shortcodesfunction do_shortcode_boc($content) { $array = array


Spread the Names
Read More

Contact Form 7 Data POST

Spread the Names

Spread the Names How to pass/post Contact Form 7 Data another storage or API? Download  Contact Form 7 Data POST Plugin and write your custom code


Spread the Names
Read More

Uncaught Error: Syntax error, unrecognized expression: [href=#] in ordpress

Spread the Names

Spread the Names To temporarily solutionUntil your theme developers release a fixed version,you can add the following code snippet into your theme functions.php file ————————————————————————————


Spread the Names
Read More

Add Overlay on Contact Form 7 Submit Button

Spread the Names

Spread the Names=> Add below script in WordPress Footer <script type=”text/javascript”>jQuery(document).ready(function (){ // Contact Form 7 Submit Button Overlay var OriginalSubmitValue; jQuery(‘.wpcf7-submit’).on(‘click’, function () {


Spread the Names
Read More

Gravity Form In Prevent duplicate form submit on back button

Spread the Names

Spread the NamesjQuery(function($){       $(document).on(‘gform_post_render’, function(e, form_id){            $(‘#gform_ajax_frame_’+form_id).attr(‘src’, ‘about:blank’);       });}); Spread the Names


Spread the Names
Read More

Featured Image Get in WordPress

Spread the Names

Spread the Names<?phpif(is_home()){   $blog_page = get_option( ‘page_for_posts’ );   $src = wp_get_attachment_image_src( get_post_thumbnail_id($blog_page), ‘full’ ); $Featured_Image = ‘style=”background-image: url(‘.$src[0].’);”‘;}?><div class=”” <?php echo $Featured_Image; ?>></div> Spread the


Spread the Names
Read More

WooCommerce: Add wordpress custom field Tab on the Product Page

Spread the Names

Spread the Names<?php /* ## WooCommerce: Add wordpress custom field Tab on the Product Page ## */ /*————— Add belove code in theme’s function.php file


Spread the Names
Read More

SSL certificate problem: unable to get local issuer certificate in WordPress Update

Spread the Names

Spread the NamesWordPress in Plugins or WordPress version issue by SSL certificate problem: unable to get local issuer certificate Resolved:Add belove two lina at bouttom


Spread the Names
Read More

How to Merge Multiple .sql Tables/files Into a Single File?

Spread the Names

Spread the Names1. Goto cmd 2. Type in command prompt C:usersUsersname>cd [.sql tables folder path ] Press Enter Ex: C:usersUsersname>cd E:projectdatabase 3. Type command prompt


Spread the Names
Read More

Change and Update (WP) WordPress URLS in Database When Site is Moved to new Host

Spread the Names

Spread the NamesChange and Update WordPress Site URL Online Table prefix : Old URL : New URL : See here your Query… <html> <head> <script


Spread the Names
Read More

Remove WordPress adding
and

tags

Spread the Names

Spread the NamesPut below code in function.php and  enjoy…. 🙂 <?php function better_wpautop($pee){ return wpautop($pee,false);}remove_filter( ‘the_content’, ‘wpautop’ );add_filter( ‘the_content’, ‘better_wpautop’ , 99);add_filter( ‘the_content’, ‘shortcode_unautop’,100 ); ?>


Spread the Names
Read More

How to Add New Field in General Settings Page? And how to use this Field’s Value in WordPress Admin or Frontend.

Spread the Names

Spread the Names1]  Add this below code in active theme’s => functions.php file :- $new_general_setting = new new_general_setting(); class new_general_setting {    function new_general_setting( )


Spread the Names
Read More

Change and Update WordPress URLS in Database When Site is Moved to new Host

Spread the Names

Spread the NamesUPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl‘, ‘http://www.newurl‘) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’);


Spread the Names
Read More

Why Customised permalinks not working in localserver (WAMP) ?

Spread the Names

Spread the Names 1st Way :  For enabling pretty urls / permalinks, you have to enable Apache mod_rewrite. 1. Start WAMP Server. Click on the WAMP


Spread the Names
Read More
FBN 0
×

Baby Names Filter by

Start With

Gender

Alphabet

Religion

Rashi

Numerology