• Resolved petluck

    (@petluck)


    Hi, awhile back I had asked how to include the date in the bubble content and this is the instruction I had, that worked perfectly. I’ve just installed a new version of the map and this is triggering a fatal error.

    You can include the date manually in the point’s description, but if you want include it dynamically, follow the steps below:

    1. Open the functions.php file, located in “/wp-content/plugins/codepeople-post-map/include/functions.php”, with the text editor your choice.

    2. Go to the snippet of code:

    $point_address = $point[‘address’];

    and paste the following line of code just below it:

    $point_address = get_the_time(‘l, F j, Y’, $point[‘post_id’]).’
    ‘.$point_address;

    and that’s all.
    Best regards.

    I don’t know code so has this changed now?

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello,

    The solution is valid for the new version of the plugin too, but be sure you are using the correct single quotes symbols, and not apostrophes in the code. The only difference, depending on the version of the plugin installed in your WordPress, is the piece of code:

    $point_address = $point['address'];

    That in some versions is:

    $point_address = ( isset( $point['address'] ) ) ? $point['address'] : '';

    But this fact does not affects the rest of the code you should enter below.

    Best regards.

    Thread Starter petluck

    (@petluck)

    Just to let you know this is resolved, I copied the code from my original email notification and it worked ?? thanks again!

    Plugin Author codepeople

    (@codepeople)

    Hello @petluck,

    Thank you very much for letting me know.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bubble content’ is closed to new replies.