What is wrong here? Issue with post_id and meta_value

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’);

Table not getting created upon activation of WP Theme

dbDelta is extremely picky. Looking at your code I’d say you’ve violated this rule: You must put each field on its own line in your SQL statement Two of your fields are sharing lines with parenthesis. I haven’t tested that particular pattern but dbDelta is extremely picky. I don’t know if that space after NOT … Read more

Show recent posts in a table format

You still can use lists – just use proper CSS (every third li – first li in every row – should have clear property set; You can use CSS classes or :nth-child selector to do this). If you really have to use table (I don’t suggest it – it’s not a very good idea, because … Read more

Table appears in Visual mode of editor but not in preview or after publish

Whenever $results_desc->feed_product_desc is empty, the post content is used. Otherwise the content is never used. if (!empty($results_desc->feed_product_desc)){ $content = $results_desc->feed_product_desc; } else { $content = get_the_content(); $content = strip_tags($content); } Whenever the post content is used, all HTML tags are stripped. $content = get_the_content(); $content = strip_tags($content); To get the full content with all the … Read more