Support » Plugin: Get Custom Field Values » [Plugin: Get Custom Field Values] Widget pulling Custom Field data from latest post only

  • Resolved tonyallsopp

    (@tonyallsopp)


    I’m using the Get Custom Field Values plugin (v3.3.1) to pull some custom field data into the footer of individual posts. You can see it as it stands here:

    http://www.rhcoachholidays.com/england/delightful-durham

    This is the data that is being pulled from the custom field: “28th September – 1st October 2012 (p,t&a) £200 per person (no single supplements)”.

    I assumed this plugin would pull the corresponding data from each post it is shown below, but it only seems to be pulling in the data from the most recent post, and then displaying it on all the posts.

    I have the post ID set to ‘0’, and the limit to ‘0’ also.

    Please help! I’m pulling my hair out here!

    Thanks in advance,

    Tony

    http://wordpress.org/extend/plugins/get-custom-field-values/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem after installing the latest update 3.3.1 (WP 3.2.1). Version 3.2 of the plugin works with WP 3.2.1. fine!

    Same problem, anyone figure out a solution?

    there is a bug in the widget.

    you have to change the code of the function widget_body in the file get-custom.widget.php from this:

    // Determine, based on inputs given, which template tag to use.
    		if ( '0' === $post_id )
    			$post_id = 'current';
    
    		$post_id = intval( $post_id );
    		$limit   = intval( $limit );

    to this

    $post_id = intval( $post_id );
    		$limit   = intval( $limit );
    
    		// Determine, based on inputs given, which template tag to use.
    		if ( 0 === $post_id )
    			$post_id = 'current';

    Same problem here using short codes in the posts after the update. Is there any patch?

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Please try v3.3.2 of the plugin as it should fix the issue affecting everyone in this thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Get Custom Field Values] Widget pulling Custom Field data from latest post only’ is closed to new replies.