the longsku is regular wordpress post meta, so you can simply call that with get_post_meta.
get_post_meta takes three arguments:
- post_id (which is already available in $_product)]
- meta key (‘longsku’ in your case)
- and a boolean to return a single string (true). if not set, it returns an array, but since the meta key is just a single value you can use true
this should do the trick for your longsku:
echo get_post_meta($_product->id,'longsku',true);
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- How to rotate the header image per day?
- WooCommerce Checkout page customization [closed]
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Creating Search Engine Friendly URL’s with Word Press
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- How Can I limit the visible part of the short-description on the Category page?
- Translating (WooCommerce) placeholder text
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- Change post template the proper way
- How to make my wordpress site responds for 2 domains
- Custom Slider Per Page created
- Admin new order email customization
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- Multiple WordPress sites with docker
- .maintenance and maintenance.php also in multisite install?
- how to redirect to a custom password retrieval page
- Is there a plugin to make attaching images easier?
- Custom category order with get_categories
- Pagination Help on Crazy Custom Authors Page
- Getting rid of the #038; when string replacing content
- Querying multiple WordPress custom fields with AND qualifier
- page_template toggle between 2 templates + 2 permalinks for same post
- Create a Custom menu item fetched by Product Categories and Sub Categories
- How to get last_updated and newest_blogs in WP 3.0
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- How to build a child theme from a react-based parent theme?
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- 1 bit audio player
- Outputting posts from post id´s in variable
- Get Value from Column in Plugin Table [closed]
- The Best Way to always load the newest version of 3rd party code
- Theme licensing and permission on changing content [closed]
- Add ‘Creator’ User Meta when adding user
- Auto login after wordpress installation
- Using Fullscreenr with a wordpress blog – weird bug
- Determining What Content Gets Displayed
- Truncating varying lengths of information
- How to get pages id in array in get_pages?
- Anonymous Postings
- Access post meta in future_to_publish function
- Run plugins only on certain pages
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Edit sticky header html – How to locate corresponding php file
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- OrderBy multiple custom meta fields
- How to host 2 subdomains as lookalike destinations under one master domain?
- Track usernames with piwik [closed]
- Custom Login Process
- How could I verify whole WP directory before/after working with a freelancer? [closed]
- Semi complicated custom taxonomy question
- Duplicated content with custom shortcode
- Display a list of subcategories (from specific Category) a post belongs to
- shortcode – multiple instances of same parameter name in one shortcode instance
- How to create a plugin that includes all the other plugins?
- Display posts by combining multiple meta key
- Custom theme – how to link the image without posting it
- How to add active state to the navigation links?
- Integrating Custom Database with WordPress
- How do I fix my static page
- How can I replace content on site generated from plugin without changing plugin
- List of contents of entire blog
- optimal taxonomy or custom post types
- Easily add custom HTML outside the main container?
- adding fade on mouseover to images
- Customize section does not show my widget areas
- Lightbox not showing image caption
- Make Widget appear on Dashboard
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- How to send custom mail when a user complete a specific form
- clickable toggle menu, help
- twenty seventeen customizer duplicates section content
- How to append the excerpt to the content in the single post page?
- How to Password Protect whole site except for some subdirectories
- WordPress Install – “end of script output before headers” when running simple php script
- Ordering a specific post type
- Conditional required fields for WordPress Contact Form 7
- How to replace part of shortlink with nothing
- Replace code in plugin template
- disable lightbox in a plugin [closed]
- Setting up staging area
- Assign classes to Custom fields
- How wordpress plugin hooks works? [duplicate]
- Selling Downloadable Products [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Do i need to use PHP in customizer api?
- Add variable : 1 Week ago
- When is it OK to create a custom table for a plugin? [duplicate]
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Custom product sorting archive page
- Add custom information in editor summary
- A Voting system for a pageants