Your function is going to hit the end of that first return and stop. Concatenate the strings and it should start working.
Related Posts:
- WP doesn’t show Array Custom Fields?
- Add new “Insert Into Post” button with another function
- Add meta data to the menu
- can you set a default value to a custom field
- Guest Author – How can I use custom fields to create guest author link?
- post meta data clearing on autosave
- Add input field to ‘Pages > Edit Page’ through functions.php
- Auto-add paragraphs to custom field?
- Add description text under input field for new profile fields
- How to add a predefined custom field without using a plugin?
- Populate Custom Field Dropdown on Theme Install?
- How to add content at the end of posts?
- how to put a custom field value in variable
- Auto Populate Custom Field with Complex Value That Increase by One?
- Custom Metabox Not Saving
- Getting the ID of any image for use in functions.php
- Auto-remove custom field with no value on publish
- Display custom field values from posts on frontpage
- Specific coditional usage [closed]
- Hide custom fields when empty
- How to disable Edit Post and Allow only Custom Field?
- Custom metabox not working
- Stripping and/or altering the content of a custom field (video URL)
- Odd functions.php issue in WordPress
- Meta boxes not displayed, data isn’t being saved
- Get fields from metabox array
- Including inline Custom Fields info with add_filter in functions.php
- How to automatically create a custom field when a post is published?
- Is there a way to set default custom fields when creating a post?
- Pre-filling custom fields on New Post
- So much data in postmeta
- 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)
- Why isn’t my code to save custom fields in quick edit working?
- How to oEmbed from custom field, responsive to container size and responsive
- Custom Meta Boxes: Store two values in one repeatable field
- Search everything (posts, pages, tags, cpt, meta)
- Gutenberg Custom Block
- Up/Down voting system for WordPress
- Custom Meta Field not Working with qTranslate [closed]
- 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’
- Metabox with multiple fields added by user and upload box
- Get all meta keys assigned to a post type
- 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
- How to loop through certain custom field values
- add_action and remove_action if custom field exists
- 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?
- Get an advanced custom field after post publish
- update_post_meta for repeated custom field [closed]
- Custom field, add class to anchor tag
- Trying to reorder posts by custom field
- Delete custom fields when deleting posts
- Pull custom fields from custom posts within a loop
- How to display custom fields from a plugin
- 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
- 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
- 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?
- No result update a custom field using wp_schedule_event
- Display custom widget value in header.php
- 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
- User Filter Options on Archive Page
- Login_form add to top of form rather then bottom
- 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
- 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 display data from custom fields in my custom shortcode?
- 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
- 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?
- Dynamically update Custom Fields to display new dates
- save all acf options in one meta_value [closed]
- Can running a WP-Cron to update_post_meta cause performance issues?
- custom field value is blank or empty