Posted: June 28, 2015 at 10:47 am
|
Hi We are finsihing our site at http://www.cele.si/new and would like to replace author from the title with Venue. At the moment it shows gregy1403, but i would like to show Venue instead. Is this template modification or EE4? Thank you |
|
OK, author removed in settings, how do i add Venue? Thank you |
|
Hi, I’m having to guess slightly, but I believe you want the venue name to be added into the post meta area (where the date and comment count is)? Screenshot http://take.ms/k8GMP If this is correct, then I can only give you half the solution, and some pointers. The post meta information (category, date, author, comment count etc) is added by the theme, so depending on the theme, you will either need to: 1) Create a child theme and use a modified single.php (if the post meta is in that file) to change what the post meta displays. 2) Create a site specific plugin and use a function to target a hook or filter (if the theme has a hook or filter for the post meta). More info on site specific plugins https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ As you can see, it’s very much dependant on how the theme has coded the post meta display. From our perspective to the the venue name you can use this code:
This PHP code gets the Post object, and the venue data from that. It then loops through the arrays (there’s only one currently) and echoes (displays) the venue name. If you are not comfortable with PHP, you will likely need to hire a developer to assist you with this. |
|
Hi Dean Thank you for explanation. What i meant was on frontpage |
|
Hi, Thanks for the clarification. While the location is different, that is still the post meta, so barring finding how that particular post meta is displayed, my initial response is still valid: you will need to find the right file and use a child theme or if there is a hook/filter, use a function to change it. As the theme is premium and we don’t have access to a copy, I can’t say how to handle that. I would perhaps refer to the theme support and ask how to modify the post meta for posts on the front page/via Visual Composer. The theme author should be able to provide a detailed explanation for how to do it. Combine that with the above code and you should have a good starting point to get the change done. |
|
Thank you very much |
|
You’re welcome! |
The support post ‘Remove author, add Venue’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.