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
- Database table prefix different between wp-config.php and in database
- Count views without get_post_meta
- 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
- 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
- What is the fastest way to generate a unique id number when registering a user
- How best to inject ads between posts in the loop?
- 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]
- Does thumbnail regeneration edit the database?
- 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?
- Show last modified date of database
- Are custom tables in the database overwritten when WordPress is updated to new versions?
- What generates these very slow postmeta queries? [closed]
- How to migrate a website based on a custom database to wordpress?
- How do I get the posts within a certain year/date(with sql query)?
- Displaying BLOB PDF File
- How to scan barcode and store data into a database [closed]
- Fetching values from database for select box
- WP CLI Core install – blank database
- Update from 4.5 to 4.6 failing
- fastest replacement DB
- Does auto_load to ‘no’ in wp_options improve performance
- Check if an option exists and get its value in one hit
- Problems with moving my WordPress site to another domain/server
- Is it important to have integers inserted using %d rather than %s?
- Export a custom Mysql database product catalog to WordPress
- Any risk to changing WP table col CHARACTER_MAXIMUM_LENGTH?
- Global__r connection timed out
- Connect to database in the header of my WordPress website
- Should I store critical css in the database or in my theme’s filesystem?
- WordPress url transformation script
- Location of WP default mySQL tables creation file?
- Creating a search form and displaying results
- Is it risky if I update all url in the database due to my site url changed?
- Select From wpdb – Author/User Directory page
- Just created a WordPress Table can’t get $wpdb get row to work – need help
- Search Character Set Problem
- Native timestamp on wp_options option
- SELECT rows between two datetimes when the range is dynamic [closed]
- How to get the full stack trace for WordPress “table doesn’t exist” error in debug.log?
- How to fix Uploaded to this post option to see group of images uploaded to a post?
- How to access a table in a wordpress database using REST API?
- error establishing a database connection 3
- Correct and secure way to access a custom SQL database in a custom PHP template file
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- Missing latest posts and options after DB migration via phpMyAdmin
- get_the_terms is not working
- Custom metabox does not store data
- How do i get value from wp_postmeta?
- Local host to server import problem
- Restoring .sql backup results in “Error establishing a database connection”
- Link to handle $_GET request
- WordPress sync with phpbb
- Display single post inside accordion based on form submission results
- “MySQL server has gone away” since update to 3.8
- featured image not showing up with mysql_connect
- Getting deleted users in database
- Options of accessing wordpress data from mobile app
- Getting data from a table using a query
- Database interaction (private-public) [closed]
- wp_usermeta key problem
- How to properly configure SSL connection to remote azure database for running queries within a WordPress environment
- Database Queries are crashing the server
- Uploading to WordPress Database
- Merging multiple WP databases into one for a multilanguage site prevents access to language-specific WP administration
- How to change all the images in post content to full/orginal size – Thumbnails are broken
- Can I Load posts from an External database if the post is not found on Main WordPress Database