I think this should do the job
<?php echo ucfirst(get_the_title()) .' - '.get_post_type( get_the_ID() ) ;?>
Related Posts:
- exclude multiple terms using get_terms() function
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Allow authors to post only in categories they create in WordPress
- Add custom field to attachments in a specific category
- How to Populate the list of custom post type categories
- Php string not working in WordPress Functions.php [duplicate]
- Problems with function on function.php
- Use template for posts with a particular category grandparent
- Check if Product is in a Specific Category in Functions.php
- Woocommerce – remove product from category
- get current product name in functions.php
- get post based on category chosen in drop down – The ajax method
- Swapping wp_dropdown_categories function with wp_category_checklist
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to pick the default selected value in wordpress dropdown?
- Get page that displays all children of taxonomy parent
- Dilemma of Populating all the categories in a drop down list
- Edit the_category (); for a hierarchical display
- Displaying posts based on category
- How to get current post category details inside “loop”?
- Show all tags within a category?
- Post not populating for custom post type based on category selection
- Dropdown category field inside repeatable metabox
- Display Visual Composer shortcode if a post belongs in specific categories
- Get parent category name when only child category is applied to a product
- How to move a post from one category to another
- Notice: Undefined variable
- Hide a specific category title from displaying on site
- Populate Posts based on category selected using AJAX that means without page refresh
- All categories options or All categories not Populating
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- PHP get_category() function redeclared
- Get category id for a custom category and display it in a class
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Displaying categories
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Exclude a category ID from the following function
- Display current category title on category page
- Cleaning up WordPress to improve performance?
- How can I modify the permalink via a filter?
- wp_set_object_terms and arrays
- How to use WordPress (PHP) functions in AngularJS partials files?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- List all categories but exclude current post category on single post page
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Can’t load WP function into external function
- Image as Sales Badge
- WSoD being caused by this piece of code
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- How to complete two other input fields, completed the first
- how do I get a specific post from a post with a subcategory in WP
- WP grandchild categories in nested ul li
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Css loads very slow [closed]
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- jQuery code not working when included in functions.php
- Fatal Errors on pluggable.php
- Log in / Log Out Custom Button
- how to test for all children (including multilevel grand-childern) of page
- JSON REST API WordPress only showing first 10 categories
- Limit Taxonomy Output in Conditional Statement
- wp_redirect only works on main site and not on other sites
- How to modify the default feed via a function
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- require_once() if a product in woocommerce contains a tag [closed]
- Loop over Array and get the distinct ids
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Shortcode for Listing Users from Meta Value?
- Removing sidebar on category pages
- How to remove the space before the ellipsis in excerpt?
- Dynamic Menu drops pages?
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Adding an Unlinked Space in a Custom Function
- How do I call an external php non WordPress class into functions.php?
- send popup after wp_redirect()
- Checkbox doesn’t save inside metabox
- A function to get the content of a page
- How to get latest post ID in functions.php?
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- WP custom posts: filter results to custom taxonomy tag that corresponds to user meta field
- How can I prevent a shortcode div from extending beyond its boundaries?
- Get custom field value from the function.php
- Advance custom fields variable with if statement & Function
- Restrict wordpress access to logged users only
- How best to check if a user is from China and hide content?
- Printing OEmbed URL based on Post selected w/o page refresh
- Automatically refresh page if widget is added to page?
- Need to adjust condition to say if I’m pulling categories from a post, to pull only the first one
- How to create “page” used for generating PDF? [closed]
- Published custom posts missing
- PHP version or config prohibiting script from working properly
- Why isn’t my custom function kicking in from my functions.php file?
- Search in particular category in wordpress
- Shortcoding with Divs
- static array on functions.php
- Integrating CSS Into a WP Function Call [closed]
- Change background image based on tags
- Need help with conditional logic for menus
- Custom Admin Menu Report for Specific User ID