Not in stackoverflow nor stackexchange can`t answer my question. I dont know maybe they just can edit my writing dictation!. Anyway after searching in php courses my code is this now and works correctly:
<?php
$custom_field_type = get_post_meta($post->ID, '_custom_field_type', true);
$custom_field_type = array_filter($custom_field_type, 'strlen');
if (count($custom_field_type)) {
echo '<div id="vijegiha">';
echo '<h3 id="vijegih3">ویژگی های کلیدی</h3>';
echo '<ul>';
foreach($custom_field_type as $vijegi)
if (!empty( $vijegi )) {
echo '<li>'.$vijegi.'</li>';}
echo '</ul>';
echo '</div>';
}else{} ?>
Related Posts:
- How to automatically apply woocommerce product title to all product images alt tags?
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- WooCommerce: update custom fields after checkout validation failure
- tracking number field in Woocommerce order [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Trouble checking if custom woocommerce checkout field is empty or not
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Function returns text instead of html [closed]
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- How to rename woocommerce-billing-fields
- Creating an image from a custom field
- WP All Import / Update stock quantity from multiple XML files
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Display custom field value in woocommerce variable product via jQurey
- PHP function for horizontal Woocommerce thumbnails and badges
- Remove span tags from WooCommerce Downloads page
- Use Search Term in html link and redirect
- Custom woocommerce payment gateway – Form
- sessionStorage saves input value in browser but it is not loaded in the form field
- Woocommerce custom attributes list help
- Can’t make product images clickable
- WooCommerce – Print Processing orders [closed]
- Advanced Custom Fields Show PHP in Text Areas
- How to create a container in php then customise it in CSS
- Grabbing value of input field inside of array
- Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme
- Allow HTML in custom taxonomy description, and show it on front end
- How to update custom fields using the wp_insert_post() function?
- How to check if woocommerce is activated in theme
- Query WooCommerce orders grouped by several order statuses
- retrieve thumbnail from post ID of best selling product in category
- Display a selected custom product option in WooCommerce cart
- Automatically check the option “Enable stock management at product level” on product creation
- How do I make wordpress comment fields required?
- Javascript code inside “” in core WordPress files .php
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- woocommerce – hide payment method in new order email
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- Multiple options not staying selected after saving
- Woocommerce api: create product with images – bad request
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Firing schema via code in functions.php doesn’t work
- parts of url disappear when using # inside href=”” [closed]
- Dot is not added at the end of href
- WordPress Woocommerce – Product Type [closed]
- Add .htm extention to a custom taxonomy
- Which PHP page is the Default Posts Page
- Non-Closing PHP Query in WordPress Loop
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Single Quotes in .php file doesn’t load website
- Add data-id attribute to child page links
- How to upload WP user avatar on woocommerce account page [closed]
- How to relocate paypal button gateway on checkout page in woocommerce
- How do I run code every 24 hours?
- How to use the checked() function to check for a non-empty var
- Conditional featured image with youtube thumbnail
- Custom forms with HTML
- Woocommerce. Get a list of products in the current category on the archive page and product page
- how to changes mobile menu toggle breakpoint in WordPress
- How can I enter on the Thank you page in woocommerce the discount code I assigned to the product category?
- PHP inside echo HTML
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- What are the advantages/disadvantages of ways to use php template files?
- How do I check if a product is in two categories?
- php code for outputting a custom page in my account
- Query on a repeater date (acf)
- How to enable HTML tags in category description without breaking the category page
- Can’t display anything through homepage text editor
- Edit woocommerce_product_archive_description using hook
- How to create loop inside wordpress function?
- How to echo a PHP code into WooCommerce variation product?
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- custom fields anchor points php
- How to have more than one ID included in the exclude command?
- wp_query beginner
- How to create a php page to collect information from a html page
- WordPress using get_term to retreive slug not working as expected
- I need help implement a Javascript code into the PHP file
- Category – “No content found”
- divide custom field values in div every two values
- Showing custom field contents without listing description
- Hide cart when empty [closed]
- How to exclude post from being queried based on custom meta value
- WordPress – Image href for home menu nav not working
- Search result page – display values from the result’s metaboxes
- Order woo products, but first products must be with acf fields
- Parse error: syntax error, unexpected ‘}’ in
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Find owner of coupon
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Custom Admin Menu Report for Specific User ID
- How to modify default tags in wp_head()
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- Want to add custom post type for facebook feed