Home / Blog

File Permission for WordPress site

Category: Ubuntu, VPS, WordPress

Connect server via command prompt.Just copy paste below code and press enter. sudo chown -R www-data:www-data /var/www

WordPress Menu Functions

Category: , Menu, Uncategorized

Register a new menu // Start of Register menu function menu_registration_prism_10928(){ register_nav_menus(array( "primary_menu" => __

WP Advance Post query with meta taxonomy & pagination

Category: , Query, WordPress

<? function GetPosts($data = null){ $Return = new stdClass; if($data){ extract($data); } $page = (

Create MySQL View

Category: , MySql

CREATE VIEW products_trending AS SELECT `ProductID`, `P_Title`, (SELECT `product_analysis`.`An_SaleDate` as oldest_sale_date FROM `product_analysis`

VS Code enable git on internal terminal in Windows

Category: , Uncategorized

Add this code in settings.json file "git.enabled": true, // Enable git first "git.path": "C:\\Program Files\\Git\\bin\\git.exe", // Git Installe

Make Required WordPress Theme foders with terminal

Category: , Terminal

mkdir -p "part" "plugins" "template" "inc/ajax" "inc/posts" touch "plugins/includer.php" touch "inc/includer.php" "inc/ajax/index.php" "inc/posts/inde

WP Read/UnRead status checking code helper

Category: , PHP, WordPress

<?php // Start of class build by PrismICT.com class isRead{ function _construct(){ } private $postType = 'status_check'; private $statusN

WordPress custom query and pagination

Category: , AJAX, jQuery, PHP, WordPress

1. Create the view section where data will show <div class="all_contact_area"> <form class="ViewListing SubmitAuto" action="<?php echo

Wo Custom User Login CODEX

Category: , PHP, WordPress

if(!$_email){ $error['_email'] = __('Enter username/email'); } if(!$_password){ $error['_password'] = __('Enter password'); } if(!$error){ $authen

WP Register new user CODEX

Category: , PHP, WordPress

// Start of validation if(!$_agree){ $error['_agree'] = __('Must need to accept terms'); } if(!$_email){ $error['_email'] = __('Enter email');

all rights reserved