Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to get wordpress site title name from url ?

get wordpress site title name from url  <?php // Exit if accessed directlyif ( !defined( ‘ABSPATH’ ) ) exit; function oops_script(){ wp_enqueue_style(“oops-style”, plugin_dir_url(__FILE__).”style.css”); }add_action(“wp_enqueue_scripts”,”oops_script”); /*+++++++ Declaring Global Variables +++++++++*/$domain =

Read More »

How to add days in a specific date in php?

How to add days in a specific date in php?   <?php $Date = “2010-09-17”; echo date(‘Y-m-d’, strtotime($Date. ‘ + 1 days’)); echo date(‘Y-m-d’, strtotime($Date. ‘ + 2 days’)); ?>

Read More »

How to create login page with session in wordpress.

create login page with session in wordpres <?phpsession_start();if (isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-dashboard”;</script>’;} <?php if(isset($_POST[‘submit’])) { $email=$_POST[’email’]; $password=$_POST[‘password’];                 global $wpdb;      

Read More »

How to align center div in div in html ?

How to align center div in div in html ? <html> <head> <style> .outer{ width: 100%; height: 100vh; background:red; } .container{ width: 35%; height: 60vh; background:blue; position: absolute; top:0; bottom:

Read More »