You’re close, but not quite. Try it like this:
function jb_applicant() {
$custom_fields = get_post_custom(2171);
$op = '';
foreach ( $custom_fields as $key => $value ) {
$op .= $key . " => " . $value . "<br />";
}
return $op;
}
add_shortcode('applicant', 'jb_applicant');
Related Posts:
- WordPress Unit Testing – Cannot Create Tables
- Insert data in database using form
- When is it appropriate to create a new table in the WordPress database?
- Has parent field in the table wp_term_taxonomy has term_id or term_taxonomy_id
- BuddyPress: What’s the use of wp_bp_xprofile_data table and how does it get updated? [closed]
- stdObject stored in database. How does one convert it to usable format?
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- Moving to another host; which tables to move in a database
- WordPress mysql table double prefixes
- Change WordPress prefix for only one table?
- input data and output table [closed]
- Retrieve data from the database to table such as comments in the admin control panel
- Change options table prefix only
- Query multiple tables at once?
- Why does changing Database Table Prefixes result in loss of content?
- Can I customised default WP table
- Should I use an additional column in the DB?
- Will adding & modifying default WordPress table index break future WordPress update
- How to edit custom table data in frontend
- How to map data on CSV to web pages?
- Create hundreds of users with just ID in phpMyAdmin
- Have WordPress Use a Different Database for users
- Example of a strong and weak entity types
- $wpdb won’t insert NULL into table column
- The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
- MariaDB as a backend database
- WP Multisite: load content from site X on site Y
- What is the purpose of the option name hack_file in the options table?
- WordPress database error with latest WP – “WP_termmeta doesn’t exist”
- WordPress Connection Pooling
- How to reset the post ID increment
- Cloning and syncing a WordPress website
- How to execute mulitple statement SQL queries using $wpdb->query?
- Store and Encrypt Contact Form 7 Submissions in Database? [closed]
- WordPress database growing dramatically in size despite adding no new content
- Clean database from unused tables
- How wordpress accesses its own database
- Using table lock with wp_insert_post?
- Migrating database / content of non-CMS site to WordPress
- Should I remove transients from the wp_options table?
- Delete all post meta except featured image Using SQL
- Show last modified date of database
- What generates these very slow postmeta queries? [closed]
- How to migrate a website based on a custom database to wordpress?
- How to scan barcode and store data into a database [closed]
- Fetching values from database for select box
- WP CLI Core install – blank database
- fastest replacement DB
- Call to undefined function get_user_meta() – trying to access data in MySQL from custom fields
- When to use custom DB tables or add_option?
- Have working sql query… trying to adjust it to use $wpdb
- Best host for running large mem and processor intensive WordPress sites?
- Will there be any concern if I upgrade my current WordPress Database server from Centos 7 Mariadb 5.5 to Centos 8 Mariadb 10.3?
- creating new field on mysql
- Does WordPress store the username as a primary key in the database?
- Strange characters added to the database
- Database Update Required – Update from command-line
- After database migration, theme mods don’t show [closed]
- Custom search query by category id
- Website displays old version of page
- Image link issues after importing a database backup to my local web server
- multiple wordpress installs w/shared user database but separate content databases
- Updating seperate database when post attachment is changed
- add featured image dialog box disappear
- Is there any way to monitor a MySQL db and check what has changed?
- DB prefix not updating
- Any other way of storing plugin admin data setting
- Will memcached improve performance with WP Super Cache already running?
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- Restore of database doesn’t show content
- Why theme settings lost when I installed https
- WordPress site migration – locked out of admin area
- WordPress users table missing indexes
- unable to use my wordpress site after moving
- How to add download link from database on custom page template?
- How can i syn wordpress user table with a stand-alone php script?
- insert data from a form:: Warning Empty query mysqli::query()
- Db connection problem on Azure Since database moved on CLEARDB
- How to get specific table by current user login
- After Migration From dev, Only my Links to the Homepage Still Redirect to dev
- do I need to change the default database prefix?
- Mysql Queries per Visit – Crazy High
- Media Library doesn’t allow uploads? Upload Directory
- using same mysql user with many databases
- Manage 3 Layers Of Information (CTP – Posts – Then Maybe Metadata?)
- Get id from database
- Insert double entry in DB
- How to write to wp-users table
- Theme options not being sent to Database
- Database custom table issues – incorrect result displayed
- What is good W3 total database caching option? [closed]
- Change taxonomy slug in database
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- Multiple Address In WP-Option Value
- WordPress database error Unknown column
- Which is less DB intensive in the loop: custom taxonomies or meta fields?
- Custom wordpress SQL statement for a website
- How to STOP wordpress trying to update database?
- Cant Connect to Database
- WordPress database connection failed, while mysql client is working [closed]