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() {…
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 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
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″>…
September 25, 2021
Import and export in PHP
The data management area benefits greatly from the import and export feature. The Import feature…
September 9, 2021
wordpress pagination without refreshing page
Hello, Friend, only 2 step pagination create numbering pagination ajax Like : Step 1: Add…
August 31, 2021
WordPress
WordPress (1) Functions.php (2) style.css (3) Plugins (4) Get Menu (5) Header and Footer Function (6) Get Post Type (7) WordPress Function…
PHPCODE © 2023