get_category_count() is a Wordpress function to count the posts within a category. It can probably be written in many different ways. Here is my version of the function and should be placed in functions.php in your theme.
Is there a function in Wordpress to check the current page depth like is_child(), is_grandchild() or a number for unlimited depth? I could’nt find any so I created one.
The function converts a page name to a page ID. You can use it however you like but in the example I used it with the wp_list_pages() function.
If you have a post or a page and need the permalink for it there are serveral solutions. Here are one of them. I created a name to permalink converter called “Get Permalink by Name”.
Normally the get_the_content() tag returns the content without formatting. I found out a solution to make get_the_content() tag return the same content as the_content().
Wordpress template tag the_category_id has been deprecated and their recommended method is a bit complicated if you only post in one category at the time. There comes a shorter alternative…
Sometimes you might need to check if a current user is logged in or not within your theme. I have created a function to get the userdata as a returned string value.