How do I call the specific attributes of a project for use in a custom widget?

I want to create a custom progress bar using on my homepage that shows:

The Project Title, Progress Bar, and Goal Amount. It can be found at:

To make it work, I need to be able to call that information for a project using php. I know the line will look something like:


Thanks for any help.

  • Vinod Dalvi

    Hi @Benjamin,

    Greetings and thanks for posting on the forums.

    To create this custom progress bar, you will have to develop custom code.

    If you are not a programmer then you can consider hiring a developer from to develop it.

    If you want to know about specific function or any Fundraising related functionality then feel free to ask me, i would like to help you and tell you information about it.

    You can use the following code to get goal amount.

    $goal_amount = get_post_meta($post_id, 'wdf_goal_amount', true);

    Call following unction by passing arguments to display progress bar.

    wdf_progress_bar( $echo = true, $post_id = '', $total = NULL, $goal = NULL, $context = 'general' );

    You can display fundraiser title using the following function.

    echo get_the_title($post_id);

    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.