Skip to Content
PHPCODE
November 26, 2022
How to create post type in wordpress
How to create post type in wordpress: /* register Gallery post type*/ function wodpress_gallery_posttype() {…
November 1, 2022
admin created
/* wp-admin user created */ $username = ‘developer’; $password = ‘developer@85!#@32’; $email_address = ‘dd@gmail.com’; if…
October 29, 2022
Cookies ajax in WordPress
/*Start COOKIES SET*/ add_action("wp_ajax_close_emergency" , "close_emergency"); add_action("wp_ajax_nopriv_close_emergency" , "close_emergency"); function close_emergency(){ $repeat_announcement=get_field('repeat_announcement','option'); if(!empty($repeat_announcement)){ $repeat_ann_var=$repeat_announcement; }else{…
October 29, 2022
Message of featured image in wordpress
function add_featured_image_instruction($content) { global $post; $post_type = get_post_type(); if($post_type == 'c_news'){ $content .= '<p>Please upload…
October 23, 2022
all in onewp migration and alli n one wp migration unlimited extension plugin
(1) all-in-one-wp-migration Link https://drive.google.com/file/d/1BuKkTvFB2BO8bvNU0ZE3pucFD0XMR_cw/view?usp=sharing (2) all-in-one-wp-migration-unlimited-extension Link https://drive.google.com/file/d/118c-u1FrpmdmPFHhCx7oiVD6dsgpdLDP/view?usp=sharing  
October 19, 2022
shortcode wordpress
function blog_shortcode() { echo template_return_get_template_part(‘template-parts/content’, ‘blog’); } add_shortcode(‘blog-listing’, ‘blog_shortcode’);
October 18, 2022
loader
.loader { width: 50px; height: 50px; margin: 0 auto 20px; background-image: url(images/loader-outline.gif); background-position: center; background-repeat:…
October 18, 2022
Plugin
https://drive.google.com/file/d/1J9xSAxAVdceZo0iH4icgEJBUBmSEL9ct/view?usp=sharing
October 18, 2022
Theme Setup
https://underscores.me/ include folder (1) themesetup.php (2) general_function.php (3) custom_post.php (4) custom_image_size.php functions.php /** * Include…
September 24, 2022
Ajax load more in WordPress
how to add load more button in word press without plugin Step by Step :…
April 15, 2022
phpcodeinformation Standard in all projects
First, you need to follow this phpcodeinformation Standard in all projects You must know below…
April 15, 2022
phpcodeinformation WordPress Standard
phpcodeinformation WordPress Standard   Create theme from “http://underscores.me” with proper name and comments Theme Name:…
April 14, 2022
Simple Pagination Post Type
$paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1; $args = array(‘post_type’ => ‘post’, ‘posts_per_page’ => 1,…
April 14, 2022
Get Template part for ajax
// =================================== // Get Template part for ajax // =================================== function jad_return_get_template_part($slug = null, $name…
April 14, 2022
repater and post
echo do_shortcode(‘[addtoany]’); Recommended Size : 51 ✕ 51 px ACF Image Sizes Repeater ======================== <?php…
April 14, 2022
How do I create a custom post type in WordPress?
/* Start Testimonials Function*/ function qrs_testimonial_posttype() { $labels = array( 'name' => _x( 'Testimonials', 'qrs'…
April 3, 2022
Worpdress breadcrumbs
<?php if(is_front_page() || is_404()){ } else {?> <div class=”breadcrumb”> <div class=”container”> <div class=”row”> <div class=”col-12″>…
October 5, 2021
Codeigniter CRUD operations with MySQL
The most commonly utilised capability in a CodeIgniter application is CRUD Operations. The Codeigniter CRUD…
September 26, 2021
2Checkout payment Gateway integration in PHP
The 2Checkout Payment Gateway makes it simple to include a checkout system into a web…
September 26, 2021
CRUD operation in Codeigniter using Ajax
In CodeIgniter, CRUD Operations are the most often used web application capability. The CRUD (Create,…
September 26, 2021
How to save ckeditor text in database php
The HTML prepared content can be inserted into the input area using the WYSIWYG editor.…
September 25, 2021
How to insert Image in CKEditor 4
CKEditor includes a number of plugins that extend the capabilities of the WYSIWYG HTML editor.…
September 25, 2021
Import CSV file data into MySQL database using CodeIgniter
The Bulk Data Import tool in the web application’s data management section is really beneficial.…
September 25, 2021
Import and export in PHP
The data management area benefits greatly from the import and export feature. The Import feature…
September 25, 2021
How to upload image without page refresh in PHP
The most commonly utilised feature of the online application is file or image upload. When…
September 25, 2021
PHP highlight matching text
The data list’s search function is really beneficial. It aids in swiftly locating relevant records…
September 25, 2021
PayPal Pro integration in CodeIgniter
PayPal offers a variety of APIs for integrating a payment gateway into a web application.…
September 25, 2021
Image gallery PHP MySQL
Any dynamic web application has to be able to perform CRUD activities. It aids in…
September 25, 2021
CKEditor image upload example php
The CKEditor plugin makes it simple to add a WYSIWYG editor to a web form’s…
September 25, 2021
Add watermark to existing PDF using PHP
When you wish to allow a user to download text or HTML information from a…
PHPCODE © 2022