Pagination with ajax

wordpress, wphtml

Index or blog page code

 

Add Below code on function.php

Then upload below plugin

custom_ajax_filter_pagination

Read More

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