How to show archive title instead of first post of custom post type When you create a template of your custom post type for the archive data, you might need to display archive title. But by default first post title comes up. To solve this type of problem WordPress has a function named post_type_archive_title() .… Continue reading WordPress Trips and Tricks – Part 1
Category: Trips and Tricks
Get category details by term ID
In a day to day development process, we need to display category details inside a post card or something else. In order to get single category details by their term ID you need to pass ID in the get_term_by() WordPress function. Below is the example. You need to place single category ID inside that function.… Continue reading Get category details by term ID
How to get post type object
As a WordPress developer, its very rare that you don’t know what is custom post type or post type. During WordPress theme or plugin development, sometimes it’s needed to check the slug of a registered post type or taxonomy slug of a taxonomy. Here is a quick way, how you can check what is the… Continue reading How to get post type object
How to check a page built with Elementor
When you developing a theme or plugin, sometimes its need to check whether any page is built with elementor or not. You can different functionality based on this checked result. Here is the solution, to check if any page is built with elementor. Elementor introduce theme location API from 2.0, that allows theme developers to… Continue reading How to check a page built with Elementor