Post Meta info in single.php and list.php

Home Forums Calendar Products Events Calendar PRO Post Meta info in single.php and list.php

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #19766
    javier
    Participant

    Hi,
    I’m trying to add the typical meta info (written by admin on 10/05/2012. Posted in: blogs, etc.) in the single.php and list.php loop. I’ve copied the code from a normal post and I’ve pasted it under the event’s title, but it gives me an error: it doesn’t show the categories…

    How can I solve it? and how can I show the custom tags too?

    Thank you very much!
    Regards,
    Javier.

    #19812
    Rob
    Member

    Hi again Javier. Not sure about this one myself, but let me see if our dev Jonah has any ideas when he hits the forums later today. Stay tuned!

    #19871
    Jonah
    Participant

    Hi Javier,

    I’m going to need a little more information here. What code are you using and where? I need some examples to see what the problem could be. What is the error you are getting? What do you mean about showing custom tags?

    Please provide some more details and I’ll see what I can do to help.

    Thanks,
    Jonah

    #19963
    javier
    Participant

    Hi Jonah!
    I copied this code from single.php of my header theme:

    <?php
    $date = '’.get_the_date().”; printf(__(‘Written by %s on %s. Posted in %s’, ‘warp’), ‘‘.get_the_author().’‘, $date, get_the_category_list(‘, ‘));?>

    And I have transform it in:

    <?php
    $date = '’.get_the_date().”;
    printf(__(‘Written by %s on %s. Posted in %s’, ‘warp’), ‘‘.get_the_author().’‘, $date, tribe_meta_event_cats(‘, ‘), $date, tribe_meta_event_tags());?>

    Look at the penultimate line… I inserted the tribe_meta_event_cats and tribe_meta_event_tags. They appear but not in its place…

    Visit this link to look it: http://www.refresssh.com/event/35/

    Thanks Jonah!

    #19964
    javier
    Participant

    Sorry… I forgot the list link… http://www.refresssh.com/events/category/allevents/
    🙂

    #20008
    Jonah
    Participant

    Hi Javier, can you please post cleaner code preferably at a dedicated code pasting website like http://pastie.org, http://pastebin.com or http://gist.github.com

    Thanks,
    Jonah

    #20139
    javier
    Participant

    Hi Jonah!
    Escuse me… I didn´t know these services till I have needed them…

    I just need to show the “Post in “categories” and ” Tagged in “tags” under the title of an event such as wordpress post. I copied the wordpress single.php code and I copied it in the same place but in the single and list event.

    git://gist.github.com/2871849.git

    You can see the results in http://www.refresssh.com/events/category/allevents/

    Thanks!

    #20159
    Jonah
    Participant

    Hi Javier,

    In your code you’ve got a bunch of bad double and single quotes – this could be part of the problem. Make sure you clean up the code and then see if you’re still having the problem.

    – Jonah

    #976995
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Post Meta info in single.php and list.php’ is closed to new replies.