Events page
-
On the page where users add the event, is it possible to add a field so the website relating to the event can be added with a nofollow?
So when viewed after listing you can navigate to their site
http://wordpress.org/extend/plugins/events-manager/
-
is there something I could add here settings – formatting- events – Default event list format
You’d need to copy and edit the event-editor.php template at /plugins/events-manager/templates/forms.
There’s more on modifying the plugin templates here:
http://wp-events-plugin.com/documentation/using-template-files/So copy the event-editor.php to my theme so I can edit from WP admin in editor?
so possibly add some code under
<h4 class=”event-form-name”><?php _e ( ‘Event Name’, ‘dbem’ ); ?></h4>
<div class=”inside event-form-name”>
<input type=”text” name=”event_name” id=”event-name” value=”<?php echo esc_attr($EM_Event->event_name,ENT_QUOTES); ?>” /><?php echo $required; ?><?php _e ( ‘The event name. Example: Birthday party’, ‘dbem’ )?>
<?php em_locate_template(‘forms/event/group.php’,true); ?>
</div>In My theme folder I only have folders called images, documentation, css so do I need to create a folder and call it events-manager
then in there add a folder called templates then place event-editor.php into this directory below
so I have wp-content/themes/MY THEME/plugins/events-manager/templates/forms/editor.phphave you tried #_ATT values?
http://wp-events-plugin.com/documentation/event-attributes/
those appear as fields automatically in your form editor, no editing required.
so would I enable “Enable event custom fields”
Then I see in add event I have a “Add New Custom Field”
Or would I just leave the events custom field as NO and add code into the box Event Attributes
What would I type into here so I get a URL box for users to type a link to event with a “nofollow” attribute?
Thank youusing event attributes, you can add something like #_ATT{external_link} which users can add their custom links and then to add nofollow ->
you can use
<a href="#_ATT{external_link}" rel="nofollow">#_ATT{external_link}</a>in your settings – formatting- events – Default event list formatok not getting it to work, but ideally I was after getting it in the “where” under Location name, above address type in boxes
Sorry I know I,m a bit slow, but all new to me WP
here’s another thread which may help you with this – http://wordpress.org/support/topic/adding-location-with-custom-attribute-while-setting-location-for-new-event?replies=2
Thanks, not really helping but I will keep reading things may fall into place some day lol
Ah an easier solution maybe when adding event the “Region: ” Under postcode what file can I edit to change the word “Region: ” to “Website”. I don’t need region I can just have the state/county and could I add to that part of code in anyway to “nofollow”?
Can I edit
<tr>
<th><?php _e ( ‘Region:’, ‘dbem’ )?> </th>
<td>
<input id=”location-region” type=”text” name=”location_region” value=”<?php echo esc_attr($EM_Location->location_region, ENT_QUOTES); ?>” />
</td>
</tr>In /wp-content/plugins/events-manager/templates/forms/event/location.php
I think you be better off adding a new field, rather than modifying an existing one.
There are two bits to this – adding the extra info and displaying it in your templates (this is where you’d need to add the nofollow attribute to the link).
For the adding the link part, are you using front-end forms, or WordPress admin?
“For the adding the link part, are you using front-end forms, or WordPress admin?
“
Being new to WP I,m not sure, I login and have menus on left with plugins, etc “dashboard” so I assume WP admin, not sure what you mean by front end formsI am adding/trying to add from WP admin
OK.
Followed above post again.
using event attributes, you can add something like #_ATT{external_link} which users can add their custom links and then to add nofollow ->you can use #_ATT{external_link} in your settings – formatting- events – Default event list format
If I log in as user submit event I see option I have labelled website.
I enter a URL and publish.
But on events page I do not see any url or field called website
The topic ‘Events page’ is closed to new replies.