not sure where the code snippet is placed, and where you are trying to access it from. A simple (but ugly) solution might simply be to set this array to be global.
Something like
$GLOBALS['leftids'] = $leftids;
and then from the other code use
global $leftids;
echo $leftids[0];
Related Posts:
- WP-e-Commerce Adding A Product via Flash Button
- wp-e-commerce plugin – custom payment option
- WP ecommerce – How do I change the product image for each product variation?
- wp-e-commerce plugin – Second Test Gateway payment option [closed]
- How to edit products page of wp ecommerce plugin?
- Permalink issue only with numbers [closed]
- Code not looping over all products of a given category
- How to change the layout of a product page
- style being attatched to tag from outside of style sheets
- wp_reset_query equivalent for WP Ecommerce
- Existing Ecommerce plugins with Custom Post Types [closed]
- Limit the number of results from wpsc_start_category_query
- How to sell an album for download
- Can WP ecommerce collect card info without charging?
- WPSC how do i output product per category on one page (wpsc-product-page)
- How to charge shipping in WP e-commerce based on a variant? [closed]
- WP-E Commerce: How to let user leave a personal message/instruction with each product from the products page [closed]
- Why does the first page of one category redirect to empty page 4?
- How to Match Orders to User Sessions in WPeC
- WP Ecommerce, Gold Cart and pagination
- How to organize products by collections with collections description?
- How to randomly generate products pop-up on click in store
- WP e-Commerce hook after creating order?
- WP E-commerce and Display Fancy Purchase Notifications
- insert order number into wp ecommerce order confirmation email
- Switching off shipping in WP-eCommerce
- Change how WP e-Commerce calculates price total at checkout [closed]
- In what files I can change country names of wp-ecommerce plugin? [closed]
- how to get extra info from checkout in wp-ecommerce
- how to get tax percentage in wp-ecommerce
- Sell photos through WordPress [closed]
- Where the variations are stored in the database when using wp-e-commerce plugin? [closed]
- How to extract data from a post meta serialized array?
- WP Cron Doesn’t Execute When Time Elapses
- How to get permalink and title from post ID?
- Fetch array with $wpdb
- How to store widget fields data as an array?
- getting attachement images src and add classes
- Insert new element to array with add_filter
- Nice way to print_r arrays
- Why does get_users suddenly return duplicates?
- Order by & include array by specific post ids
- Get list of all registered post types slugs
- Can I query custom meta data through WP_Query
- Reversing the order of posts AFTER the query is performed
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Sorting list of sites from multisite network using wp_get_sites
- How to store the_title() into a variable to reutrn the value, not just echo it
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- What kind of object type is WP_Query?
- shortcode outputs first before the page content [duplicate]
- get_option function
- Metabox repeating fields – radio buttons not saving correctly
- How can I save an array from a random post sequence for later use?
- WP doesn’t show Array Custom Fields?
- How to query serialized array by comparing greater than (>=)?
- How can merge two arrays values in one array and save in database
- How to build widget with arrays inside arrays?
- Autogenerate wordpress shortcodes using array?
- Settings API – save an array of options as one setting (array_push?)
- Getting an array out of WPQuery
- WordPress: How to use post_class() in an echo
- How to set the default value of a option in a theme?
- How to check a single number value against an array of meta_key values?
- How do I search an array stored in a custom-field using WP_Query?
- Formatting of curly brackets array from WP database to get more readable output
- Limit the post for differents custom post type in the same wp_query
- array_pop() expects array, boolean given for $event_type_term ->slug
- How to get an array of menu items from the toolbar?
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- Is it possible to store arrays in a custom field?
- Get_term_by only returns one item from array
- How do I pass an array as an argument to a WP-CLI command?
- How to update single value in multi dimensional Post Meta?
- meta_query key value from array
- JSON not valid after json_encode posts
- Updating wp_options with an array on save_post results in duplicated entries
- Add post title as alt tag for featured image
- WordPress eCommerce plugin for books
- assign 2 $args to one wp_query
- shortcode to create dynamic dropdown box form shortcode attributes
- Passing a variable into Contact Form 7 [closed]
- Use Transient API to cache queries for all posts in all categories?
- What are WooCommerce starter themes? [closed]
- WP-e-Commerce and W3-Total-Cache integration problem [closed]
- Need Help Finding a WordPress E-Commerce Plugin That Utilises Custom Post Types [closed]
- How to fetch serialized data from wordpress options
- How do I properly format the user_role array?
- how to limit and display tag?
- Comma seperated list of ID’s as an array?
- Return array of categories to php function
- WP_insert_term how to insert multiple values as taxonomny term?
- If function exists, and array is met, echo function?
- update_post_meta from data in multidimensional array created from a form
- Problem:Save Several Duplicate posts in The Database and then Error nesting level of ‘100’ reached
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- Error in WP_update_post
- How to store post meta in an array?
- Listing all posts from current category on page
- Updata Metadata WP Rest API