WordPress-WP

Category

29 posts found

15 Mar 2018
94
No Comments

WordPress giving great features in get_posts function with arguments that function also having great customization. get_posts function also give us great result of posts with our complex requirements, so through that function we will get post by post’s url-slug-key. Check out following function I have created to used it easily

Post in

6 Jan 2018
0.28K
No Comments

Download WordPress Download WordPress from https://wordpress.org/download/ Extract WordPress.zip file Extract WordPress.zip file to your projects directory htdocs for xampp or www directory for wamp with name “sdtutsblog”  Start Apache and Mysql Services Click on Start buttons in actions row of Apache MySql Create database go to your browser and enter

Post in

6 Jan 2018
0.31K
No Comments

Create folder and Directories This tutorial is made for all of beginners to learn how to create html to WordPress theme, Here is all of steps are defined with video tutorial, if you are facing any of problem or missed any step watch the video tutorial. Register theme Copy folder

Post in

6 Jan 2018
0.25K
No Comments

single template is used post/post-type inner page, for more read WordPress template hierarchy. Create single.php in theme directory and call get_header and get_footer function to include header and footer section of theme. Start Loop for single post Create breadcrumb and add links Add links and create breadcrumb. Show post title

Post in

6 Jan 2018
0.33K
No Comments

Create comments template create comments.php file in theme directory and we have already called in single.php by using comment_template() WordPress core function. Create condition of post if comments are enabled else show message look below. if (get_option(‘comment_registration’) && !$user_ID) condition used for registration is enabled from admin panel user must

Post in

29 Dec 2017
0.11K
No Comments

This function I was made specially for my theme which is running in this blog. I made function because Gravatar generate random images on each user’s avatar if user not uploaded real image, this function will not work no localhost so please use domain path eg: domain.com/wp-content/themes/mytheme/images/DefaultAvatar.jpg

Post in

29 Nov 2017
0.18K
No Comments

In Current 4.9 or preview versions we cannot get the_excerpt or get_the_excerpt by post ID so here is a little bit hack code to get excerpt paragraph of post by postID with alternate code

Post in

23 Dec 2016
0.32K
No Comments
how to get category from url in wordpress

I was development a section a in my #wordpress theme I need the current category from url, here is I figure out how to get category from url

Post in

16 Nov 2016
2.24K
No Comments

The #wordpress concatenating […] in #the_excerpt and sometimes with [&hellip]; I here function defined as trim_excerpt and it passed in add_filter you can copy and put the following code in functions.php file of your current active theme. little bit information about add_filter function #add_filter can change modify of the data, you can customize everything which is

Post in

14 Oct 2016
3.37K
No Comments

the_category(); function is not allowing to direct change tags and attributes, get_the_category(); function return categories of posts in array so we can modify with custom html tags and attributes check out the below example code, its used in under loop of  #the_loop

Post in