Tag: post

  • How to count custom post types in wordpress

    How to count custom post types in wordpress

    You have custom post types in your wordpress website, and want to count them for different purposes? Well, here is a fast and simple solution on how you can do it. [php] <?php $count_posts = wp_count_posts(‘portfolio’)->publish; //replace portfolio with your custom post type echo $count_posts; //output the number of posts ?> [/php]

  • A free tool to generate wordpress custom post types, shortcodes, menus, sidebars, and so on.

    Hi everyone. If you are a wordpress developer, then you know for sure what custom post types are. Writing code for WordPress have never been easier, because¬† GenerateWP¬†write the code for you. You just access the website, and select what you want to generate, fill out the fields, and then copy the generated code to […]