how about array_reverse()
http://php.net/manual/en/function.array-reverse.php
there are a bunch of array manipulation functions at php.net. i’m always there looking something up. also sort() might be useful
EDIT based on your comments:
sort($album);
print_r($album);
should return:
Array
(
[0] => 001,Get Rich Or Die Tryin
[1] => 002,Curtis
[2] => 003,The Massacre
[3] => 004,Before I Self Destruct
)
Related Posts:
- Is there a way to set default custom fields when creating a post?
- Matching Serialized Arrays with meta_query
- Pre-filling custom fields on New Post
- So much data in postmeta
- Show only posts which can be commented OR have custom meta field
- Make Custom Field Into A Link On The Front End?
- Show Custom Comment Fields when editing in admin
- How do I make a custom field choose an image?
- get_post_meta() unserialize issue – returns boolean(false)
- How can I remove fields in the attachment editor?
- Why isn’t my code to save custom fields in quick edit working?
- Edit Custom Database Tables in WordPress
- How to oEmbed from custom field, responsive to container size and responsive
- Custom Meta Boxes: Store two values in one repeatable field
- Gutenberg Custom Block
- Up/Down voting system for WordPress
- Custom Meta Field not Working with qTranslate [closed]
- Change content before writing to database
- post meta data clearing on autosave
- Problem in custom meta boxes
- Loop through two different sets of custom fields
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- Add description text under input field for new profile fields
- Metabox with multiple fields added by user and upload box
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- Get all meta keys assigned to a post type
- How to add content at the end of posts?
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Get all posts that do not have a specific custom field without using a subquery
- How to query posts with certain custom meta data, and output Post data
- Custom Fields Not in Search Results
- I want to send an email when each post is published
- Creating a widget with a number of custom fields
- How to loop through certain custom field values
- add_action and remove_action if custom field exists
- Set front page option using custom fields?
- Add post meta fields, when creating a post using WordPress’ REST API
- Store array as single, serialized post meta field or many post meta fields?
- Custom Field Values not updating unless I click “Update” twice
- Get an advanced custom field after post publish
- update_post_meta for repeated custom field [closed]
- Custom field, add class to anchor tag
- How do i add custom fields to my themes template file?
- How to combine custom fields to make one order-able value
- Updating Other User’s Metadata
- get_posts in meta box dropdown not showing latest posts
- Trying to reorder posts by custom field
- Delete custom fields when deleting posts
- Pull custom fields from custom posts within a loop
- Ordering posts by custom field named “date” in backend
- How to display custom fields from a plugin
- comment meta_query for keys that aren’t yet set
- Link the retrieved custom field values to its respective posts
- Sortable custom field values from all posts on a page template
- Adding “meta” info to WP site PHP function?
- WordPress Media Uploader custom Javascript not working
- Custom fields issue [closed]
- List custom queried terms in the edit-tags.php?taxonomy page
- Values entered in a meta box aren’t saved
- Display meta box dropdown (from custom post type) in the page post type
- Front end register with custom fields
- How to Make Post Custom Column Editable
- how can I show name and value of Custom Fields together?
- Adding simple (one button) Audio player using Custom Fields?
- Display custom field from the front page on another page
- No result update a custom field using wp_schedule_event
- Display custom widget value in header.php
- Gravity Forms Update post meta from template [closed]
- Is it possible to compare the current time with a custom “start” and “end date
- Display metabox title for custom fields with values
- wpdb function insert doesn’t work
- Gutenberg add a custom metabox to default blocks
- Adding Custom Metadata to my Archive/Posts page
- Ordering by ACF custom field vaule
- add different custom fields value to post class if permalink or index
- How to add code to custom field to every blog post via php?
- User Filter Options on Archive Page
- Create Shortcode shows only posts with custom_field meta
- Login_form add to top of form rather then bottom
- Redirecting to an external URL
- Search one custom field?
- Can’t save meta field value if the title not set
- Get a different meta value with ajax when different elements are clicked
- Delete custom fields on post publish?
- Why is wp_list_pages altering $post->ID of the page?
- How do you turn a custom field’s value into a permalink for that post?
- How to keep sharing stats after creating 301 redirects?
- Using Hooks. Thematic
- Insert wp gallery shortcode into custom textarea
- Display posts where date field matches current month?
- Use custom field value as href
- Custom registration form and custom field
- Custom fields doesnt work well with any postTAB plugin
- Colecting values from custom field checkboxes and displaying them in the post
- Build Array from Input Fields question
- Custom field for image, not showing image!
- Grouped Custom Meta Fields without plugin
- Google not index my Custom 404 page ?why?
- How to apply Local Business Google Schema dynamically on a Custom Post single template?