Post url with blog

wphtml

Add Blog Post with url pree fix blog

Example :
Default : http://www.wordpresshtml.com/post-url-blog/
Update : http://www.wordpresshtml.com/blog/post-url-blog/

You can just copy give code in your function.php and update permalink.

 

Read More

Fatal error: Cannot redeclare get_file_description() (previously declared in /home

wphtml

Hello every one.
My issue is i have make one clone of sub domain form my site with staging but when i have run staging site i have getting below error.

Fatal error: Cannot redeclare get_file_description() (previously declared in /home

I have follow below steps: Upload all care file exclude of(wp-config.php,htaccess,and wp-content directory)

Check every file have not any static live url define in my site.

also rename sub domain with new sub domain and move all file there but cant solve.

Please give me a proper guide for solve this issue.

Read More

PHP 7 added new features

wphtml
  • Speed : Php 7 add speed as compare to 5 and 6 it is twise to double speed execution.
  • Type Declarations : with php 7 you can declare variable type in function like object, array , float or int.
  • Error Handling : it will update with fatal error and exception handling.
  • New Operators : with php 7 added new operator call “Spaceship Operator” < = >
  • Easy User-land CSPRNG : API for an easy to use and reliable Cryptographically Secure PseudoRandom Number Generator in PHP 7
    You cane generate random no with new function like( random_bytes(3) , random_int(1,15); ).

    unicode support for emoji

    echo “\u{1F60D}”; // outputs ūüėć

Read More

Share post and page using ajax or static path

wphtml

Use below code to add button using ajax or static link from codding to share your post on social site.

Read More

Activate wordpress shortcode in text widget

wordpress, wphtml

When you are working with text widget and you can add any short code there it is not working in default widget text. so we have found solution of sidebar widget working with short code.
Just one step to use shortcode in sidbat text widget.

Add below code on your them function.php file and you are able to working shortcode and script in sidebar widget.

Read More

Improve google seo ranking

wordpress, wphtml

Increase seo rank on your site using below steps.

SEO Articles : Must be your artical is more attractive and updated day to day.

Search Engine Submission : Add your site all url on google using google login.

Keyword selection : Select Most usable keyword from your content and must be all page have unique key word.

Meta tag optimization : must be add all page or post have unique meta tags.

Link Building : your rank increase more if in your site more url compare to your competitor.

Common SEO mistakes : do not use conman tag, do not use key word out side of content , must be update content day to day.

Add robots.txt to hide unused file and folders url.

Best wordpress SEO Plugins :
Yoast seo
All in One SEO Pack

Read More

WordPress navigation menu code

wordpress, wphtml

You can display wordpress menu any way in header footer or sidebar using below code.

Easily manage wordptress menu calss and remove container.

Container “false” to you can remove default menu class div from menu and “true” to set div on menu.

 

Read More

Wordprss Ajax

wphtml

Add Below code on header file or any where you want to use wordpress ajax.

Add Below code in function.php

You mus be add both action add in function.php else it issue with some browser.

Read More

WordPress Default htaccess formet

wphtml

Read More