this will be like this
<?php $project_counter = get_post_meta(get_the_ID(), 'projects', true); ?>
<?php if(!empty($project_counter)) {?>
<?php echo $project_counter; ?>
<?php }
else {echo __("<h2> Input value from theme option panel </h2>", "casanova"); } ?>
Related Posts:
- Woocommerce – Specific template for product category? [closed]
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- Is there a way to use latex \cite{reference} in wordpress?
- How to check plugin compatibility before upgrading WordPress
- How do I unlock a post programmatically?
- Force Plugin to English Translation
- How to parse nested shortcodes?
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Removing user contact methods works from functions.php but not from a plugin
- Help!! I Screwed up my WP
- Dynamic homepage according to user role
- How to extract images of post and pages excluding header and logo image in wordpress?
- Subscribe2 Configuration
- I need to Remove this line
- Dropzone.js and wordpress plugin
- Filter or action hook to insert content on admin pages before tag
- How do I change the default WordPress e-mail ID for sent e-mail?
- How to create a word press user with hashedpassword
- Display specific WooCommerce products to different types of users
- Is it possible to set up multistore in Woocommerce? [closed]
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Show HTML form before WordPress plugin deletion
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Menus, but not by theme location
- Email Bounce Address
- Can someone please tell me what is wrong with my plugin?
- How to use WP-CLI / WC-CLI to bulk import 1000s of products (variable and simple)?
- Will Gutenberg Have a Negative Impact on Page Speed?
- Can’t view ‘More details’ on plugins pop up is blank and Authy pop up
- import posts with dutch/special letters
- Installing Jplayer in WordPress
- Does plugin’s uninstall.php file have access to the plugin ‘s object?
- Related posts widget or plugin needed
- Use $_GET inside a shortcode print empty Array
- Implementing an “Email this” button?
- Use conditional logic for woocommerce variable product
- How to customize a title by passing query string?
- Remove Advanced Custom Fields plugin for client?
- How to check if an email was sent from or originated from a specific plugin?
- Gutenberg Blocks – Cannot retrieve block saved attributes in edit post
- Order posts by meta key ( Using ACF )
- How to add fields in the WordPress editor?
- Migrating WordPress – New domain entry, links broken
- Search Results Page filter by page title
- Activate and deactivate plugin automatically
- Get param from shortcode in plugin function
- Is there a better way of handling AJAX requests in WordPress?
- Customizing $product->get_title() function
- Change website directory safely to add a static page on startup
- add_meta_box creating default form field types
- Plugin permissions for Editor role
- How to add an admin alert for missing plugins
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- After installing JetPack, can I delete the WordPress stats plugin?
- how to render dashboard widgets conditionaly in wordpress admin
- Redirect plugin after form submit or show errors
- how to create hierachial taxonomy and manage under single post type?
- Button and Countdown overlapping mobile menu
- How to data add to table when update post wordpress? when we clicked!
- How can I disable new plugin and theme install, but allow updates?
- Dynamic URL Issue on SEO Scan
- Check if theme supports sidebar
- Change plugin descriptions
- update_option_{$option} not working (do function after options are saved)
- Looking for WordPress PDF Converter with Custom Templates?
- How get horizontal div instead vertical CSS
- Out of date plugins not showing ugrade link
- Use Case: Multiple Shipping Methods per Order
- Showing how many times is plugin activated or deactivated
- Can’t add or delete plugins – but I’m an admin [closed]
- WordPress Categories as a Grid
- Ajax response returns html code instead of user data
- get/show Last ID
- Why is WP template_include overwritting all templates rather than specified page?
- How do I change tab url
- Disqus comments count taking long to update
- Escaping and sanitization
- How to save default values into an option and delete those upon actvation and deactivation in wordpress?
- How to Add Jquery FullCalendar in wp plugin in admin
- How to speed up installing plugins and upgrading WordPress
- Ajax, jQuery and WordPress
- PHP and Jquery pass value from form. Update function on DataBase
- Advanced Custom Field User Help URL
- No plugin updates after moving wp-config.php above root map
- Snippet displaying LearnDash parent course title with lesson title [closed]
- WordPress check box unchecked on null value ternary operator [plugin development]
- Want to show pop up image on home page every time when i refresh it [closed]
- woocommerce show cities state as dropdown list
- WordPress portfolio pagination on home page
- Wrapping code in an if block
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- Shortcode to do math with url variables
- WordPress plugin header already sent
- Disappearing plugins
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page