Try changing update_post_meta(get_the_ID(), $address, 'test');
to update_post_meta(get_the_ID(), 'address', 'test');
Related Posts:
- Urgent – WordPress keeps creating posts
- How to use wp_set_object_terms depending on page ID?
- clients list using wordpress
- expire wordpress user posts
- Forcing all posts associated with a custom post type to be private
- Date archives for custom post type
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Best way to style first post differently?
- if && problems with transition_post_status
- custom post type upcoming post and past post
- Add multiple custom post types in functions.php, but only one custom post type show in dashboard
- Append taxonomy terms as class names in markup?
- Display only custom post type count for current author on the “At a Glance” dashboard widget
- Frontend posting – everything saves other than checkboxes?
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- How would I create a shortcode to display a custom post within a page or regular post?
- GravityForm: Populate Dropdown with custom post type [closed]
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Filter categories of posts with checkboxes
- WooCommerce product search titles only
- Custom Taxonomy Permalinks Redirection
- Add custom column in custom post type edit page
- Remove standard meta boxes from custom taxonomy
- I did group my search results by post type, but how can i give each of them its own order?
- custom post type not showing in menu
- Show category ID on custom post type
- Change custom post type slug from plugin options
- Change CPT archive title
- AJAX load more for different custom post type loops
- I need to add endpoint for wordpress categories
- Featured image overlay when changing post status
- Hide a widget inside a div on specific type of post
- Cannot save CPT meta box
- next_/previous_post_link() `in_same_category` appears to fail when true
- Want to be able to sign up subscribers as authors
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- categories should be available across all custom post types
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- custom post for slider
- Excerpt function for any content
- Navigate posts with different post type that are in the same categories
- Page Template Dropdown For Custom Post Types
- Show Custom Message in WordPress Admin
- How exclude or skip post type with get_next_post_link
- How to detect that the save_post hook is calling the callback associated to the current edit post page only
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Create short URL with auto 301 redirect
- providing access to post_id or post inside functions.php
- Is it possible to use array_walk() to append terms to an array of posts?
- WordPress notification if new post published
- post_content is stripping HTML when adding a new post? [closed]
- Twitter Product Cards
- Function to limit number of custom post types on homepage – TwentyTen
- Custom meta box in custom post type not working
- How to prevent meta data from being edited in a post?
- Catch and display error on save_post action
- Excerpt length: get first paragraph
- Function to add custom HTML into head in custom post-type list page
- display custom post on separate page
- Post type Echo code is repeating on homepage
- Need help with Custom Post Types and Taxonomies
- new post-type how do i retain the plugins on my sidebar?
- Custom Post Type Dashboard Tab not displaying any posts
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- How to add specific terms in a custom post type?
- Assigning categories to custom post types via a front-end form; only works for native post type
- Default excerpt for parent of a custom post type
- Limit custom post type to the authors only on front-end!
- Move to trash custom post type post after ACF Date Picker date is older than today
- From CPT Custom Loop into Shortcode?
- Post meta is not accessible within save_post hook
- Load custom post type with ID in a shortcode
- How to assign post to category
- Using get_post_type with a custom URL format?
- If thumbnail image else post title
- How to save post_status using action save_post?
- $_SESSION Not working after X amount of page views
- Different Configuration for the_excerpt()
- WordPress page not showing up – replaced with last 10 posts?
- Custom meta box data not saving
- Post that populates itself (almost) automatically using data from imported excel file
- How to mark posts as visited
- Populate custom post type/custom fields from an external database
- Work and Display a Custom Post Type as a normal Post
- Custom Field to post_title
- How to hook save-post function to use taxonomy term in post-slug?
- Post Custom & Taxonomy 404 error
- How To Display Category list from Portfolio post type plugin?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- can’t see categories in appearance-menu-categories
- Generate slug and meta data if meta field is empty
- Problem with ‘save_post’ hook not running
- send email to all registered users when post expires
- Allow authors to create article image
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- Where paramaters of a custom function are coming from inside the loop?
- Is it possible to use a post name in a custom post slug?