December 9, 2018

How to post a blog from wordpress admin?

   
      Basically wordpress used for blog posting for any business. Its very easily so non technical person can post blogs with content, images and video also. Here I try to explain how to post a blog from wordpress in easy way.

     If you new for wordpress please follow my previous post to download and install latest version of wordpress on localhost system using xampp.


Step: 1

- Login in your wordpress admin using username/password and you can see admin dashboard and left side menu for posts.

- First you need to create category for different type of posts. You need to enter category name, slug name and select parent category if needed.



Step: 2

- When you click on All Posts its display list of all posts with Edit, Trash and View option, So you can easily edit and view any post


Step: 3

- Now for add new post you have following basic options:

- Title
- Full Description
- Short Description(Excerpt)
- Tags
- Select Category
- Set Featured Image


Step: 4

- At last Publish post and view your blog preview on front end side

I hope this post is help for post blog in wordpress.

Enjoy!

December 1, 2018

How to download and install latest version of wordpress on localhost syste usgin xampp?

Step: 1
  - First you need to Download XAMPP and install in your local sysmte.

   - Now you need to Download latest version of Wordpress.


Step: 2
   - Start your Apache and MySQL services from XAMPP Controler Panel.



Step: 3
   - After start success MySQL service open phpMyAdmin in browser and create new database.



Step: 4
   - Now unzip downloaded wordpress zip file here: c://xampp/htdocs/your_folder/

Step: 5
   - After unzip file you have one wp-config-sample.php file, rename this file name to wp-config.php.

   - Open wp-config.php file in any editor for change databse details. And change following details on this file (by default username: 'root', password: '', hostname: 'localhost')

/** The name of the database for WordPress */
define('DB_NAME', 'wordpress_demo');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');


Step: 6
   - Need some other wordpress configuration, So open this path in browser http://localhost/your_folder and you have option for select language and press continue button

Step: 7
   - Now you need to insert wordpress admin details like Site tile, username, password and email address, So fill this details and install wordpress


Step: 8
  - After wordpress installed you get successfully message and wordpress admin login link to access wp-admin.

Spte: 9
  - On wordpress admin page you should enter username and password to access wordpress admin.




Enjoy! And my next tutorial is How to post a blog from wordpress admin?


September 23, 2018

How to draw different type of pyramid in PHP using short code?



To draw a simple pyramid:
Example:

<pre>
<?php
 $no = $i = 5;
 while ($i--)
    echo str_repeat(' ', $i).str_repeat('*', $no - $i)."\n";
?>
</pre>

Output:

    *
   **
  ***
 ****
*****

Note: If you want display in middle like below

    *
   * *
  * * *
 * * * *
* * * * *

- You need just give space after start in while loop in ablove example like:
Example:
<pre>
<?php
 $no = $i = 5;
 while ($i--)
    echo str_repeat(' ', $i).str_repeat('* ', $no - $i)."\n";
?>
</pre>


- The next example for display below pyramid:
Example:

<?php
$num=1;
for($i=1;$i<5;$i++){
   for($j=1;$j<=$i;$j++){
       echo $num;
       $num=$num+1;
   }
   echo "<br />";
}
?>

Output:
1
23
456
78910

September 8, 2018

HTML5 elements for media content!



Below are list of all new HTML5 elements for media content.

<audio>
      - Ites define sound content. Its (<audio>) used to add audio content to a Web Page.
Syntax  - <audio src="define path" type="auto/mpeg" ></audio>

<video>
      - Video eletemt is same basic syntax of audio element. Its also used to add video content to a Web Page.
Syntax  - <video src="define path" type="video/mp4" ></video>

<embed>
    - Its can be define container for non - HTML application

<source>
      - Used for multiple media resources for media elements like <audio> and <video>
Syntax  - <source controls>
<video src="define path" type="video/mp4" ></video>
        </source>
<track>
        - Track eletemt used as a child for <audio> and <video> element
Syntax - <video controls>
<track kind="subtitle" src="" srclang="en" label="English">
        </video>

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...