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
- How do I make an HTML table from a database table?
- How to get the custom header image’s alt text?
- Modify previous and next text from pagination links
- How to add date range in woocommerce with code
- How to handle a custom form in wordpress to submit to another page?
- How to Remove a Filter from the Admin List Table?
- Woocommerce, recognize the loop of related products
- WooCommerce Link to Product Category
- Use ajax to update_post_meta
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Append a term to WooCommerce product existing product category terms
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- If Meta Checkbox is checked, do something?
- Correct syntax to html php conversion
- Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price
- Custom field value not saving when it contains a URL?
- WooCommerce Related Products by Attribute
- Image as Sales Badge
- Getting a specific post values to another div or modal
- Sort posts by custom fields value using dropdown menu
- WP grandchild categories in nested ul li
- Modify HTML structure of fields in woocommerce checkout form
- Need Help Fixing My Iframes [closed]
- Settings API callback function inserts html quotes from nowhere
- Add / Update Custom Fields After Select Pictures in Media Window
- Remove the last X characters of a custom field value
- echo something inside a shortcode
- How i can get post data from database when i am getting post id from url in wordpress
- require_once() if a product in woocommerce contains a tag [closed]
- How to disable delivery on certain date at checkout page in WooCommerce?
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Where can I find the inline-css of my theme header?
- Call WC_Product get_price()?
- Make textarea required. Help [closed]
- Handling repeater data
- Website completely messes up when logging out
- Calling PHP Titles inside Javascript Markup
- How can I use custom menus with a Bootstrap WordPress theme?
- Using a string from a custom field within a link
- Make separate text boxes for separate WordPress Custom Fields
- Convert a column of a table containing an Array as response in HTML
- HTML Form Question
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- Combine change Email WordPress and woocommerce emails template
- Woocommerce Product page add on checkbox and price
- How to set Nav as a default menu in wordpress
- Discount in the specific product title using keyword ( Woocoommerce )
- Place product field value as variable in php
- Sum All the Post Meta of Published posts of Current Logged in user
- Make a full-width wordpress page
- append data to mysql table via submit button coded in php – not working
- When working with a post, almost all wp_postmeta are deleted
- random woocommerce categories are not showing when count enabled?
- PHP – Woocommerce 3.2 Add variable shipping insurance with multiple “else if ” conditions
- Can’t get_users info by using json_encode
- scroll scrpit to particular button position to next id when click button
- WooCommerce – Add product category below product price [closed]
- Adding my own custom template page but got white page
- How to get the first letter from custom field?
- Meta box not saving spaces
- custom field meta-box with dropdown/autocomplete
- Display custom meta box in my template file
- Implement “No related posts for this entry” into the loop?
- wc_add_notice not working on cart page
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- ACF repeater image in video poster with jquery
- How to set variable to specific field when querying
- Woocommerce – add tracking code to another email template
- How to create different woocommerce single_product.php pages for each product? [closed]