Home › Forums › Calendar Products › Events Calendar PRO › Post Meta info in single.php and list.php
- This topic has 8 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
May 27, 2012 at 3:51 pm #19766javierParticipant
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.May 29, 2012 at 8:42 am #19812RobMemberHi 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!
May 29, 2012 at 7:21 pm #19871JonahParticipantHi 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,
JonahMay 30, 2012 at 4:23 pm #19963javierParticipantHi 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!
May 30, 2012 at 4:31 pm #19964javierParticipantSorry… I forgot the list link… http://www.refresssh.com/events/category/allevents/
🙂May 31, 2012 at 2:37 pm #20008JonahParticipantHi 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,
JonahJune 4, 2012 at 6:32 pm #20139javierParticipantHi 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!
June 5, 2012 at 10:51 am #20159JonahParticipantHi 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
July 7, 2015 at 6:20 am #976995Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Post Meta info in single.php and list.php’ is closed to new replies.