If I am understanding you correctly just change
<?php $count=1;foreach ($value['options'] as $key => $option) { ?>
and you can access the key from $key.
Related Posts:
- post__in – Placing content from a foreach loop inside of an array
- Problem with displaying HTML content after in_array [closed]
- Array ids post to function have_post
- Can’t access PHP array inside script localization from javascript
- Output meta into arrays
- Trying to get property of non-object in shortocde
- How can I access specific posts brought back by query_posts?
- How to create a multidimensional array with multiple loops
- How to get user ID’s from multiple usernames?
- Loop through an array inside a class using foreach [closed]
- CPT while loop not working
- display post tags on single.php inside loop
- Exclude posts based on an array
- Add 2 values to post__not_in
- Query posts and display all dates in repeater field in chronological order
- Can’t print out returned value
- WordPress loop: Display if posts exist
- How to get files from loop for zip
- if ( is_home() && ! is_front_page() )
- Display featured products through custom loop in woocommerce on template page
- Child Pages Loop
- Insert/sticky specific post into Loop at specific location
- Style every four posts differently [duplicate]
- Return vs Echo Shortcode
- Show newly added posts since last user login time /date
- Use the_content outside the loop
- have_posts() return false but count says “3”
- next_posts_link not working in custom loop
- How to sort posts in archive loop
- wordpress loop and template files
- Show top level comments ordered by number of replies
- Creating nested forum loops in bbPress [closed]
- Adding active/current class to get_terms list
- Redirect Loop to Page, Can’t Find Origin, Can’t Remove [closed]
- Post Format single-loop.php using get_template_part
- Display posts from multiple user roles
- Display content of page template (get_page)
- Display the_content on click jquery
- Missing image in gallery shortcode in custom feed
- Including post thumbnail url in loop’s post object to reduce number of queries
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- Make blog page show 10 on first page, 9 on every other page
- Duplicate posts in paginated results
- Two loops on different pages do the same thing, but only one page works
- Posts active and expired in different loops
- Genesis multiple category custom loop 404s after first page
- Shortcode in posts called by ajax is not working
- Display post list with different styles
- Loop for sticky posts
- Get author_id in wordpress
- Single.php different behaviour from admin to non-admin
- ACF – add a group inside a repeater [closed]
- Give each posts in a loop a number in sequence
- Create Array from custom post type to display a slider
- Get post offset/posts page offset in single post page (outside the loop)
- First article : single column; Other articles : 2 columns
- get_comments with post_status ‘public’ retrieves NULL result
- Content Visibility for WordPress is not working (Drafts, public etc.)
- Generating a perfect loop
- I have broke my pagination, same posts on all pages (index.php)
- I need to display all post in onepage
- Filter existing hook using parameter and foreach loop
- Run “the loop” in a random order
- WordPress loop not working only on home page, works on all other pages
- Exclude category from get_the_category
- Search page loop banner image issue
- Video post format, extra content breaks video embed
- Why is my category post repeating twice
- Adding a featured image to a foreach WordPress loop
- Getting selection of posts based on loop variables via Ajax
- Why would this code work locally but break online?
- Why would a completely normal loop give offset errors and maximum execution time errors?
- Avoid WP_Query’s duplicate posts with taxonomies
- Custom field outside the loop and inside an array
- How can I change how my tag pages display?
- Properly loop through and paginate page on each function call
- WordPress finding posts on 404 page
- Get a Post Loop based on Logged in User information into a Shortcode
- Loop through array of pages
- Submit form for loop of products of the term with AJAX
- Last post in loop when even
- Customizer settings using “for” loop
- Repeat code, change variable?
- Foreach loop inside foreach loop?
- Create Customization Controls from Array
- Ajax category pagination problem
- Unable to login + Redirect loop on mobile
- Variable not working in sidebar loop
- Display all existing members
- Combine Query and Select Database to create directory loop
- My custom query not detecting the correct category
- 2 loops in blog homepage
- In Loop Output Place Custom Field Content In Between Paragraphs
- wordpress showing all posts instead of date range
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Showing ads after posts in home page
- Prevent duplicating specific column from database table
- Hide old posts each year
- Hook in the loop after the first post
- show title and displaying link gallery