Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter drgoettel

    (@drgoettel)

    I found a way to do it but I didn’t wanted to touch the plugin core.

    This is what i did:
    line 1114: array_push($posts_data, $data);
    After this you can get any custom field with:
    $custom_field_value=get_post_meta($p->id,”custom_field_name”, true);

    Don’t forget to change “custom_field_name” with your custom field name ??

    If anyone knows how to do it without changing the plugin code… I would be very pleased

    Andrés

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Andrés,

    No, unfortunately there’s no way to achieve that without hacking the plugin. Anyways, thanks for sharing your solution, hopefully it’ll help others wanting to do the same.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Show custom fields content’ is closed to new replies.