webappguides
Create Wordpress Theme From Scratch! Build Your Own

wp_enqueue_script and its uses in WordPress

In WordPress, wp_enqueue_script is a function used to include a stylesheet or script to a page A script can consist of javascript, jquery, or even a customized one In this post, you will find how to add CSS in the header using this function And also, a variable that can include a script in the page footer Furthermore, there are […]

Continue Reading

What is admin_url and how it works in WordPress

The function admin_url fetches the administrator directory URL The final output when the function is called is a path of directory wp-admin The function offers the ability to access APIs like admin-ajax.php and comment.php In short, there are 7 folders and 99 WordPress PHP files residing in wp-admin In this post, you will find examples that demonstrate how admin_url returns […]

Continue Reading

What is wp_localize_script and its Functions in WordPress

Among the WordPress functions for including javascript files in a page, wp_localize_script does that task Then, if you ask yourself what is wp_localize_script, here is the answer wp_localize_script is the WordPress function special for localizing a script with data to be used by a javascript codes If a template intends to use localization API, it will be required to use […]

Continue Reading

Search custom post type by title in WordPress

webapps log

webapps Lab
June 21, 2021
ThemeFunctions

This post shows how to search custom post types in WordPress using get_page_by_title. The returned page displays the posts of the selected category. A user will be able to see the related posts on a single page once the post type title is searched. Also, you will find out how to search a custom post type by a posts title […]

Continue Reading

How to add search pagination in WordPress

webapps log

webapps Lab
June 20, 2021
ThemeCreation

The WordPress search can show all posts of the entered search term. Displaying every post that contains a certain word may increase page loading time. A slow loading disrupts the user experience and a search task become tedious. The best solution is to limit the number of results to display. This will also require pagination. These pages in pagination show […]

Continue Reading