WordPress Advanced Tutorials https://www.hostinger.my/tutorials/wordpress/advanced Tue, 26 Mar 2024 11:52:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2017/04/cropped-hostinger-fav-32x32.png WordPress Advanced Tutorials https://www.hostinger.my/tutorials/wordpress/advanced 32 32 How to Add JavaScript to WordPress Using a Plugin and WordPress Hooks + Helpful Tips https://www.hostinger.my/tutorials/wordpress-javascript https://www.hostinger.my/tutorials/wordpress-javascript#respond Fri, 24 Nov 2023 03:07:30 +0000 /tutorials/?p=98711 An aspiring WordPress developer must understand how to add JavaScript to the content management system (CMS). While the platform offers a graphical user interface, custom code lets you personalize your website further. In WordPress, JavaScript lets you modify plugins or themes to expand your site functionality. You can also use the programming language to improve [...]

Read More...

The post How to Add JavaScript to WordPress Using a Plugin and WordPress Hooks + Helpful Tips appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wordpress-javascript/feed 0
What Is functions.php in WordPress and How You Can Customize It https://www.hostinger.my/tutorials/functions-php-wordpress https://www.hostinger.my/tutorials/functions-php-wordpress#respond Fri, 20 Oct 2023 03:54:39 +0000 /tutorials/?p=96285 In WordPress, the functions.php file plays a pivotal role in shaping your website’s behavior and appearance. This theme functions file is your gateway for injecting custom code, altering themes, and enhancing your site’s functionality. This WordPress tutorial will walk you through what the functions.php file is, where to find it, how to access it, and [...]

Read More...

The post What Is functions.php in WordPress and How You Can Customize It appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/functions-php-wordpress/feed 0
What Is the WordPress get_post_meta Function and How to Use It to Display Custom Fields https://www.hostinger.my/tutorials/wordpress-get_post_meta https://www.hostinger.my/tutorials/wordpress-get_post_meta#respond Thu, 12 Oct 2023 04:08:35 +0000 /tutorials/?p=95741 A custom field in a WordPress website stores a post’s metadata in the back end. To retrieve and display this data on the front end, add the get_post_meta function to your site’s code. WordPress developers show such information to help visitors navigate the website and understand its content more easily. For example, you can feature [...]

Read More...

The post What Is the WordPress get_post_meta Function and How to Use It to Display Custom Fields appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wordpress-get_post_meta/feed 0
How to Use the wp_insert_post Function in WordPress to Insert Custom Posts https://www.hostinger.my/tutorials/wp-insert-post https://www.hostinger.my/tutorials/wp-insert-post#respond Wed, 02 Aug 2023 14:09:43 +0000 /tutorials/?p=90526 The WordPress wp_insert_post function allows you to insert custom posts into your website’s database using code. With this powerful tool, you can effortlessly create and manage dynamic content, surpassing the limitations of the standard post-creation process. If you need to automate content generation, manage custom post types, or assign metadata and taxonomies via code, then [...]

Read More...

The post How to Use the wp_insert_post Function in WordPress to Insert Custom Posts appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wp-insert-post/feed 0
What Is the WordPress get_posts Function and How to Use It to Build PHP Post Lists https://www.hostinger.my/tutorials/get_posts-function-wordpress https://www.hostinger.my/tutorials/get_posts-function-wordpress#comments Fri, 14 Jul 2023 18:25:14 +0000 /tutorials/?p=88818 The WordPress get_posts function lets you retrieve posts, pages, and custom post types based on given parameters. It works by filtering the posts based on criteria like date, author, type, permission, or meta key. WordPress site owners can use this function to show relevant content to users quickly. For example, they can display lists of [...]

Read More...

The post What Is the WordPress get_posts Function and How to Use It to Build PHP Post Lists appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/get_posts-function-wordpress/feed 2
What Are Filters in WordPress and How to Use WordPress add_filter  https://www.hostinger.my/tutorials/wordpress-add-filter https://www.hostinger.my/tutorials/wordpress-add-filter#respond Wed, 17 May 2023 15:55:15 +0000 /tutorials/?p=85876 A WordPress filter is a hook that manipulates internal data before it is displayed on the browser. To create a filter, add the add_filter function in your website’s functions.php file. In WordPress development, users use this filter to modify a plugin, a theme, or specific website functionality. For example, you can change your website posts’ [...]

Read More...

The post What Are Filters in WordPress and How to Use WordPress add_filter  appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wordpress-add-filter/feed 0
How to Enqueue Scripts Using wp_enqueue_scripts Hook in WordPress  https://www.hostinger.my/tutorials/wp_enqueue_script https://www.hostinger.my/tutorials/wp_enqueue_script#respond Thu, 06 Apr 2023 08:34:53 +0000 /tutorials/?p=82991 The wp_enqueue_scripts action hook is a vital component of the WordPress development process. Together with the wp_enqueue_script() and wp_enqueue_style() functions, it helps WordPress output content on the website. In this tutorial, we’ll cover the wp_enqueue_scripts action hook along with its complementary functions and provide various use cases to help you improve your WordPress projects. How [...]

Read More...

The post How to Enqueue Scripts Using wp_enqueue_scripts Hook in WordPress  appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wp_enqueue_script/feed 0
How to Enqueue CSS Stylesheet to WordPress Using wp_enqueue_style  https://www.hostinger.my/tutorials/wp_enqueue_style https://www.hostinger.my/tutorials/wp_enqueue_style#respond Thu, 06 Apr 2023 08:02:33 +0000 /tutorials/?p=82983 When developing WordPress themes or plugins, it’s essential to enqueue stylesheets to make them load correctly. To do so, we recommend using the wp_enqueue_style() function. It’s a powerful tool for adding custom stylesheets to your WordPress theme or plugin. This function also ensures that stylesheets are loaded only when necessary and helps avoid conflicts with [...]

Read More...

The post How to Enqueue CSS Stylesheet to WordPress Using wp_enqueue_style  appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wp_enqueue_style/feed 0
How to Use the wp_get_attachment_image Function in WordPress + Useful Examples https://www.hostinger.my/tutorials/wp_get_attachment_image https://www.hostinger.my/tutorials/wp_get_attachment_image#respond Tue, 04 Apr 2023 07:42:33 +0000 /tutorials/?p=82753 The wp_get_attachment_image is a WordPress function that lets you easily retrieve and display image attachments based on their IDs. Whether you’re building a custom theme or a plugin, this function provides a flexible way to display images with custom sizes and attributes. In this tutorial, we’ll go over the wp_get_attachment_image() function and explain its parameters. [...]

Read More...

The post How to Use the wp_get_attachment_image Function in WordPress + Useful Examples appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.my/tutorials/wp_get_attachment_image/feed 0