Hide comment on media attachment page

wordpress

Add Below code in function.php

 

Read More

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
Send Grid to  email send

Send Grid to email send

php

Just copy give code and set api key in “testmail.php” file and cal “testmail.php” file in your browse url

You can sennd you email using sandgrid-php and add below code into your php file to use below code.

 

 

Read More

Remove post type slug from url and replace with terms

wordpress

Copy below code in your function.php file.

Create post type with url taxonomy term

“our_homes” taxonomy terms and  “property” Post type.
you must be assign category else it will error

 

 

Read More

Update the_excerpt word length

wordpress

Using given code you can increase or decrease wordpress default function length.

the_excerpt()

you can just coppy and past below code in function.php file and update text length using update return value.

 

Read More
Wp to add custom field display in admin post list

Wp to add custom field display in admin post list

wordpress

You can add any custom field in your admin post type / page / custom post type list using below code.

Below code example for display event start date in event post type admin list.

here in below example “event” is custom post type and “event_date_start” is custom field.

 

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

wordpress 4.7.3 version for security

wordpress

You can see mor update on wp site.
it will support follow 6 task.

  • Cross-site scripting (XSS) via media file metadata.
  • Control characters can trick redirect URL validation.
  • Unintended files can be deleted by administrators using the plugin deletion functionality.
  • Cross-site scripting (XSS) via video URL in YouTube embeds.
  • Cross-site scripting (XSS) via taxonomy term names.
  • Cross-site request forgery (CSRF) in Press This leading to excessive use of server resources.

DOWNLOAD wp 4.7.3 here

WordPress 4.7.3 Security and Maintenance Release

Read More