Make category link to a page
-
I love using Events Manager but there is one little thing. For each of my categories I have a page with a long description of that. So could I make a category link to an existing page?
By the way, this is my first topic on these forums so tell me if I am missing something.
-
yes, you can use categories placeholder at events > settings > formatting
please see this placeholders list – http://wp-events-plugin.com/documentation/placeholders/
I have seen a lot of these topics ending up in something with placeholders. I don’t really know how to use them and can’t seem to find any guides for them.
Anyways, additionally I can’t see which placeholder I should use even if I knew how. There seems to be many placeholders putting categories into pages but what I want is to redirect from the category page into an existing page.
I.e. from http://www.helhedenscirkel.dk/?event-categories=selvudvikling
to http://www.helhedenscirkel.dk/?page_id=26Is that possible?
you can try something like
<a href="#">#_CATEGORYNAME</a>And this might be stupid but where should I put that?
By the way, thanks for helping. 😀
Hiya,
Take a look at Events > Settings > Formatting.
You’ll see that there are ‘formats’ for each of the pages Events Manager creates. They are put together using a combination of HTML and Placeholders, just like Angelo’s snippet above.
Cheers,
PhilSorry it’s been so long. Now I think I understand what you mean and I put the code in “single category title format” and it changed nothing.
I also tried putting it in the single event side around eventcategories.
Any other ideas?
Thanks for helping.
can I know where are you trying to put it? eg. in the single category page, in the category listing page or in single events page?
also, are you using #_CATEGORYNEXTEVENTS which you wanted to change the category name and link to external page?
I tried to put it under events in the single events page.
I also tried in event categories under single category site, both in the title format and in the site format.If you want the category name to appear on single event pages you should add it to the formatting setting at Events > Settings > Formatting > Events > Single Event Page > Default single event format
Thanks
Sounds logical but how to I make each category target a specific page? I mean if I add #_CATEGORIES it would be a static link.
You see my problem?
If you use the #_CATEGORIES placeholder it’ll create a dynamic list of all the categories that event is in. Is that what you want?
Well it does that by default. What I want is to make each category a link to another page instead of a post on the categories page created by events manager.
To do that you’d either need to create your own conditional placeholder:
http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/
Or add some conditional PHP code to your templates.
After reading through that guide I think this is above my coding level. So unless there’s an easier way which is seems not I will have to let that idea go. Thanks for the help though.
maybe there are confusions, can I know where exactly do you want to use categories which links to your external page? eg. in single events page? if yes, then you can use placeholder #_CATEGORIES which you can override it’s templates at wp-content/plugins/events-manage/templates/placeholders/categories.php – you can use php if else or switch condition here to detect the category name then link to your external page
eg.
<a href="#">#_CATEGORYNAME</a>to use templates: http://wp-events-plugin.com/documentation/using-template-files/
The topic ‘Make category link to a page’ is closed to new replies.