logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$5
WPLatte Framework - Custom Fields

Hello,

I am trying to insert custom fields into single.php in WPLatte framework, but it doesnt work.

There is my custom field in single.php

<?php $url = get_post_meta($post->ID, 'url', true); ?>
<?php $download = get_post_meta($post->ID, 'download', true); ?>
<a href="<?php echo $url; ?>" rel="nofollow"><h4 class="toggle">Purchase <?php echo $download; ?> Now</h4></a>

This question has been answered.

Chymmi | 02/02/13 at 9:16pm Edit
Tutorial: How to assign prize money


(9) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    02/02/13
    9:51pm
    John Cotton says:

    Have you declare $post as global?

  • avatar
    Last edited:
    02/02/13
    10:17pm
    Arnav Joy says:

    try this


    <?php $url = get_post_meta(get_the_ID(), 'url', true); ?>
    <?php $download = get_post_meta(get_the_ID(), 'download', true); ?>

  • avatar
    Last edited:
    02/02/13
    10:09pm
    Chymmi says:

    I don't know :)
    here is my single.php http://jsfiddle.net/xquF8/1/

  • avatar
    Last edited:
    02/02/13
    10:19pm
    Arnav Joy says:

    or try this


    <?php $url = get_post_meta($post->id, 'url', true); ?>
    <?php $download = get_post_meta($post->id, 'download', true); ?>
    <a href="<?php echo $url; ?>" rel="nofollow"><h4 class="toggle">Purchase <?php echo $download; ?> Now</h4></a>

  • avatar
    Last edited:
    02/02/13
    10:26pm
    Chymmi says:

    Lol this works, maybe its bug ..in a few minuts I will tell you :D
    Anyway thanks bro

  • avatar
    Last edited:
    02/02/13
    10:30pm
    Chymmi says:

    Yes it works :)
    you are my hero :D I had problem with it about 8 hours :(

  • avatar
    Last edited:
    02/02/13
    10:32pm
    Chymmi says:

    how I close this answer ?

  • avatar
    Last edited:
    02/02/13
    10:44pm
    Arnav Joy says:

    Click on vote to award prize link below your question and then choose amount and click on vote.

  • avatar
    Last edited:
    02/02/13
    10:45pm
    Arnav Joy says:

    Also see this

    http://blog.tailormadeanswers.com/2011/04/22/voting-assign-prize-money/

This question has expired.



Chymmi voted on this question.



Current status of this question: Completed



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.