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
- separating column the variations from the add to cart button woocommerce
- Missing sidebar parameter “fix” – before_content
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- How do I display a user’s previous orders as a select box option on a product?
- How Display Posts on category
- How do you add customer capability after Woocommerce purchase?
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Change sign up fee in cart for subscription products WooCommerce
- How to get the POST TITLE using the POST ID?
- Importing hard coded custom field into acf field
- How can I use wp_query to show all product data using just the products ID?
- write custom woocommerce templates and forms
- combine Code 1 with Code 2
- WooCommerce – Reset quantity input field when variation changes
- get current product name in functions.php
- Get stock by custom meta field on all Woocommerce variable products
- Make the first item as default on Woocommerce product category items list
- Custom Text in WooCommerce Order Processing Email Based on Products
- Woocommerce redirect thankyou page based on product ID doesn’t empty Cart
- Set a condition based on WooCommerce checkout city field while placing order
- HTML tags in bloginfo description
- Get WooCommerce product details and transfer them to a custom DB table
- woocommerce subscriptions – get expiration date [closed]
- ACF page while loop breaks footer while loop
- WooCommerce Related Products by Attribute
- Image as Sales Badge
- Getting a specific post values to another div or modal
- WooCommerce – Email admin with new user details
- Add a class to the anchor tag on HTML5 gallery
- Transferring working local PHP site to wordpress – with database (MySQL)
- Automatically remove a canceled order in Woocommerce
- how to remove metadata from the posts of my blog?
- How can I create a list of page titles from custom meta values?
- Load a page into a div with Ajax
- Call global variable array() in woocommerce child/template
- My form action url is being prepended with a directory that does not exists
- Passing the custom field values in the wp_get_current_user array function
- Remove price from Woocommerce variable product dropdown menu
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Converting HTML Template to WordPress Theme
- Sort posts by custom fields value using dropdown menu
- Adding nofollow to a PHP generated Nav
- Multiple options not staying selected after saving
- Custom profile field with birthday. Troubles with
- Using the echo command adds unwanted br tags to source
- custom fields wordpress
- Why the JavaScript code is ignored from wp editor?
- WordPress – Display array data of a child
- Automated Cart Update With Alert Box Each Time
- Populate dropdown with Child Pages based on Parent Page chosen
- Two Different Links for Same Product – WooCommerce [closed]
- Issue adding sub category programmatically
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to store data from multiple forms using ajax and php
- search and replace preword from author
- Embed html in php code
- dividing sub-categories by parent category – WordPress
- Show prices with tax in Woocommerce Mini Cart [closed]
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Woocommerce product variation backorder
- Status 400 for AJAX POST Request with admin-ajax.php
- Problem with custom plugin using AJAX to pull info from php file
- Woocommerce hook run after an Order been created through REST API
- How can I apply_filters from inside a function?
- Get and insert order email address to the PHP template inside HTML text
- WP grandchild categories in nested ul li
- Modify HTML structure of fields in woocommerce checkout form
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Pass Category Name, Description and Photo into variables to pass to jQuery