google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

custom_field shortcode prints field value at beginning of content instead of in-line with text #577

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please make sure you are including enough information to make this a valid
bug report: https://code.google.com/p/wordpress-custom-content-type-
manager/wiki/ReportingBugs

What steps will reproduce the problem? (Be *specific*)
1. Insert [custom_field] shortcode in the middle of a paragraph in a post's 
main content block.

What is the expected output?
I expect the contents of the custom field to be displayed in-line, where the 
shortcode appears in the content block.

What do you see instead?
The contents of the custom field appear at the beginning of the content block.

Does the problem continue if you disable all other plugins? (plugin
conflicts cause a LOT of problems, so please isolate the problem)

Yes. I believe the issue is caused by the custom_field() function located in 
includes/CCTM.php.  Line 1026 calls print_custom_field() instead of returning 
the value of the custom field.

Please copy and paste the system information that appears in a yellow
textarea when you click on "Report a Bug" on any CCTM admin screen (this
includes the version of the
plugin, the version of PHP, the version of MySQL, a list of other active
plugins etc.):
*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7.13-pl
WordPress Version: 4.0
PHP Version: 5.4.14
MySQL Version: 5.6.13-log
Server OS: WINNT
Language: WPLANG
------------------------ 
ACTIVE PLUGINS: 
 * Better WordPress External Links v.1.1.3 [http://betterwp.net/wordpress-plugins/bwp-external-links/]
 * Better WordPress Minify v.1.3.3 [http://betterwp.net/wordpress-plugins/bwp-minify/]
 * Custom Content Type Manager : Advanced Custom Post Types v.0.9.7.13 [http://code.google.com/p/wordpress-custom-content-type-manager/]
 * Disable Comments v.1.1.1 [http://wordpress.org/extend/plugins/disable-comments/]
 * Display Posts Shortcode v.2.4 [http://www.billerickson.net/shortcode-to-display-posts/]
 * Duplicate Post v.2.6 [http://lopo.it/duplicate-post-plugin/]
 * Duplicator v.0.5.8 [http://www.lifeinthegrid.com/duplicator/]
 * Easy Theme and Plugin Upgrades v.1.0.4 [http://wordpress.org/extend/plugins/easy-theme-and-plugin-upgrades/]
 * WPBakery Visual Composer v.4.3.2 [http://vc.wpbakery.com]
 * Real 3D Flipbook v.1.2.15 [http://codecanyon.net/user/zlac/portfolio?ref=zlac]
 * Responsive Lightbox v.1.4.8 [http://www.dfactory.eu/plugins/responsive-lightbox/]
 * Revolution Slider v.4.5.6 [http://www.themepunch.com/codecanyon/revolution_wp/]
 * Templatera v.1.0.5 [http://vc.wpbakery.com/]
 * UpdraftPlus - Backup/Restore v.1.9.26 [http://updraftplus.com]
 * WordPress SEO v.1.6.3 [https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin]
 * WP Clone by WP Academy v.2.1.8 [http://wpacademy.com/software/]
 * WP Mailto Links - Manage Email Links v.1.4.1 [http://www.freelancephp.net/wp-mailto-links-plugin]
 * WP-Optimize v.1.8.9.7 [http://www.ruhanirabin.com/wp-optimize/]
 * WP Smush.it v.1.6.5.4 [http://wordpress.org/extend/plugins/wp-smushit/]
 * WP Super Cache v.1.4.2 [http://wordpress.org/plugins/wp-super-cache/]
 * WP Video Lightbox v.1.6.9 [http://www.tipsandtricks-hq.com/?p=2700]
------------------------ 
CURRENT THEME: RCG Total Child v.1.0 

Original issue reported on code.google.com by afc0...@gmail.com on 17 Oct 2014 at 2:48

GoogleCodeExporter commented 9 years ago

Original comment by ever...@fireproofsocks.com on 17 Oct 2014 at 3:03