Pagination On A Single Post In WP

Go to TEXT EDITOR Mode in WP. Then add this code where you want to add page-break. If you want to break the post into 5 pages then you have to add this code 5 times. Now, go to single.php file and add this code: under

Importance of esc_url, esc_attr & esc_html in WP

esc_url, esc_attr and esc_html known as Validating, Sanitizing, and Escaping. Long story short, the main reason these things are important because escaping (fundamentally, sanitizing input and escaping output) is a critical aspect of web application security. Important Articles On This Topic: 1. The Importance of Escaping All The Things 2. Usage of esc_url, esc_attr, and […]

Highlight the Current Page Of A WordPress Navigation Menu

If your theme supports WordPress menus, then you already have a built-in class which will make it super easy to highlight the current page being viewed. By default, WordPress menus output this class with the list item: current-menu-item

Notes About WordPress Hook

Hook is known is event broadcasting system in WordPress. There are 2 types of Hook: a) Action Hook b) Filter Hook ACTION HOOK: Cannot modify final action/decision. FILTER HOOK: You can modify final decision/action. HOOK PRIORITY You can add priority to you WP hooks. The hook with a lower value will run earlier than the […]