boyntonjamie
Forum Replies Created
-
AuthorPosts
-
Hi Guust
I don’t have any of the plugins installed on the list, the only plugins I have (apart from GD) are Code Snippets (which I installed after reading a suggestion on here) and Duplicator. I’ve tried de-activating both but still no luck.
— Just tried changing the permalink structure (I have to set it to ‘plain’ because it won’t work with ‘post name’ on local server) and it works okay although the display is much bigger.
Nowhere complicated, just below the main body of the post (see image).
If it’s not overly complex, I’d like for one custom field to be there (as per the image) and another in the sidebar like normal, but I’m worried that may be more difficult.
Hi Kor, I did see this but it doesn’t have the option to place it where I’d like. I want it to go just under the main content of the place/post.
One solution would be to just add it into the description when creating a place (i.e. the biggest text box on the page when adding a place) – but this would mean lots of copying and pasting, or typing etc. every time.
I’d like to be able to make a list of ‘amenities’ if you will, and a checkbox allows me to quickly tick off the features that each location has. I’d also like to adjust how they are displayed, for example maybe have bullets for each list item.
Hey Kor
Yes, definitely assigned a category to the place. I just tried adding a new category and using that, and unchecking the ‘set category as default category’ — neither of these helped.
On the live site it works fine, but on localhost it will only work if I set permalinks to “plain” – GD docs say this should be set to “post name”, but with post name it doesn’t work.
What will happen if I just leave permalinks as plain?
This reply has been marked as private.Update:
I have found that if I restore WordPress permalinks to “plain” – it works okay.
But stops working again when I choose to do “post name,” as suggested in the GD guide.
Is there something extra I need to do after changing the permalink type to post name?
Just for clarification, this is regarding a site that uses only the core plugin.
This reply has been marked as private.Thanks. Is there a way to minimise it (by default) rather than get rid of it completely?
Thanks, this is fixed now.
Is it possible to remove the “Location” > “City” from breadcrumbs? As it’s single-city these aren’t of much use.
Also, is the neighbourhood page just a replica of the homepage? E.g. it will be the same layout, same widgets etc. as the city one, or can it be modified separately?
Okay the marker issue is sorted now – the sub-category had an updated icon but the map was using trying to use the parent category’s icon, I think. Added to the parent and it’s fine now.
Please could you tell me how to remove the pop-up box in the image attached, given the size and zoom of the map it’s quite intrusive, I’d rather it was minimised by default.
Thanks, this seems to have worked fine on first glance.
Should I be worried that if the word ‘place’ appears in any of the place profiles that it will change to bar?
Okay so after checking further I can see that one of the plugins and the code I posted above work, but only on the wp-signup.php page, so it doesn’t fit the rest of the site with the theme/layout from GD and my theme.
How can I make these changes happen on the GD signup form?
All three plugins I used claim to put user role selection on the signup page, that is what I want. I can’t find the feature in BuddyPress, I can find the option to add additional fields but not the option to make one of those fields user role selection.
Searching online I’ve found this code:
<?php //1. Add a new form element... add_action( 'register_form', 'myplugin_register_form' ); function myplugin_register_form() { global $wp_roles; echo '<select name="role" class="input">'; foreach ( $wp_roles->roles as $key=>$value ): echo '<option value="'.$key.'">'.$value['name'].'</option>'; endforeach; echo '</select>'; } //2. Add validation. add_filter( 'registration_errors', 'myplugin_registration_errors', 10, 3 ); function myplugin_registration_errors( $errors, $sanitized_user_login, $user_email ) { if ( empty( $_POST['role'] ) || ! empty( $_POST['role'] ) && trim( $_POST['role'] ) == '' ) { $errors->add( 'role_error', __( '<strong>ERROR</strong>: You must include a role.', 'mydomain' ) ); } return $errors; } //3. Finally, save our extra registration user meta. add_action( 'user_register', 'myplugin_user_register' ); function myplugin_user_register( $user_id ) { $user_id = wp_update_user( array( 'ID' => $user_id, 'role' => $_POST['role'] ) ); } ?>
But placing it in functions.php didn’t do anything and I’m not sure where else to put it.
-
AuthorPosts