Display Related Posts in WordPress
How To Show Posts Without Using setup_postdata( )
How to output group and post meta value
Code on metabox.config.php file NOW CODE ON THE OUTPUT PHP FILE
How to display metabox field data on codestar-framework
You should use _custom_page_options as this is the id for your key declared into metabox config file. So your code must look like this: HINT: LOOK CODE ON MBHOUSE PROJECT services-page-template.php
How To Highlight Search Results In WP
Add this code in functions.php file
Best Way To Add Body Class In WP
1.Add classes in Body with array 2. Remove by default generated class from body. Add Filter in function.php file
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 […]