Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Using PHP to pull WP custom field data (from Foxycart guide)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #29826
    kin3tic
    Member

    Hi,

    I’m following the wiki by css-tricks for foxycart/WP integration and working in the area of creating an add to cart button. This line:

    <input type="hidden" name="price" value="<?php echo get_post_meta($post->ID, ‘price’, true); ?>" />

    Seems to break it and make the submit button not show up. When I replace it with a hard $ it works fine. Like this:

    <input type="hidden" name="price" value="4.99" />

    Based on an old WP post, I tried replacing $post->ID with $my_query->post->ID, no go. Submit button disappears.

    Any help is appreciated!

    Thank you

    dan

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.