Giri
Forum Replies Created
-
AuthorPosts
-
I’m also facing the errors paolo mentioned while testing on your server.
WordPress requires minimum 1 GB RAM to work. Some shared hosting servers are optimized for WordPress. So you can run wordpress there.
But some shared hosting servers limit their server resources.
MySQL daemon has this configuration
max_allowed_packet
You are facing
MySQL server has gone away
type of errors because of that
max_allowed_packet
setting value is configured with low value.
You should resolve your server problems first either moving to a better shared hosting server or moving to VPS.
Here is the gist of above code. ( Much easier to copy paste )
https://gist.github.com/mistergiri/64237ef1093ec4b7612a944b8d80ef23
You also have to edit this template
/wp-content/themes/geodirectory_whoop/functions/events.php
And add one line over there.
Around line 144, you have to add this line.
<?php do_action('whoop_event_detail_after_category'); ?>
It would be better if you post your wp admin login details
Hello Kenneth, Whoop events doesn’t support tags by default. The page is designed based on yelp events page.
If you need to enable tags on events, add this code in your child theme.
function whoop_event_detail_add_tag() { global $post, $preview; ?> <dl> <dt><?php echo __('Tags:', GEODIRECTORY_FRAMEWORK); ?></dt> <dd><?php $taxonomies = array(); $post_type = 'gd_event'; if (!empty($post->post_tags)) { if (taxonomy_exists($post_type . '_tags')): $links = array(); $terms = array(); // to limit post tags $post_tags = trim($post->post_tags, ","); $post_id = isset($post->ID) ? $post->ID : ''; /** * Filter the post tags. * * Allows you to filter the post tags output on the details page of a post. * * @since 1.0.0 * @param string $post_tags A comma seperated list of tags. * @param int $post_id The current post id. */ $post_tags = apply_filters('geodir_action_details_post_tags', $post_tags, $post_id); $post->post_tags = $post_tags; $post_tags = explode(",", trim($post->post_tags, ",")); foreach ($post_tags as $post_term) { // fix slug creation order for tags & location $post_term = trim($post_term); $priority_location = false; if ($insert_term = term_exists($post_term, $post_type . '_tags')) { $term = get_term_by('name', $post_term, $post_type . '_tags'); } else { $post_country = isset($_REQUEST['post_country']) && $_REQUEST['post_country'] != '' ? sanitize_text_field($_REQUEST['post_country']) : NULL; $post_region = isset($_REQUEST['post_region']) && $_REQUEST['post_region'] != '' ? sanitize_text_field($_REQUEST['post_region']) : NULL; $post_city = isset($_REQUEST['post_city']) && $_REQUEST['post_city'] != '' ? sanitize_text_field($_REQUEST['post_city']) : NULL; $match_country = $post_country && sanitize_title($post_term) == sanitize_title($post_country) ? true : false; $match_region = $post_region && sanitize_title($post_term) == sanitize_title($post_region) ? true : false; $match_city = $post_city && sanitize_title($post_term) == sanitize_title($post_city) ? true : false; if ($match_country || $match_region || $match_city) { $priority_location = true; $term = get_term_by('name', $post_term, $post_type . '_tags'); } else { $insert_term = wp_insert_term($post_term, $post_type . '_tags'); $term = get_term_by('name', $post_term, $post_type . '_tags'); } } if (!is_wp_error($term) && is_object($term)) { // fix tag link on detail page if ($priority_location) { $tag_link = "<a href=''>$post_term</a>"; /** * Filter the tag name on the details page. * * @since 1.5.6 * @param string $tag_link The tag link html. * @param object $term The tag term object. */ $tag_link = apply_filters('geodir_details_taxonomies_tag_link',$tag_link,$term); $links[] = $tag_link; } else { $tag_link = "<a href='" . esc_attr(get_term_link($term->term_id, $term->taxonomy)) . "'>$term->name</a>"; /** This action is documented in geodirectory-template_actions.php */ $tag_link = apply_filters('geodir_details_taxonomies_tag_link',$tag_link,$term); $links[] = $tag_link; } $terms[] = $term; } // } if (!isset($listing_label)) { $listing_label = ''; } $taxonomies[$post_type . '_tags'] = wp_sprintf(__('%l', 'geodirectory'), $links, (object)$terms); endif; } if (isset($taxonomies[$post_type . '_tags'])) echo '<span class="whoop-geodir-tags">' . $taxonomies[$post_type . '_tags'] . '</span>'; ?></dd> </dl> <?php } add_action('whoop_event_detail_after_category', 'whoop_event_detail_add_tag');
Look into these files
wp-content/themes/geodirectory_whoop/whoop-widgets/events-are-you-interested-widget.php
wp-content/themes/geodirectory_whoop/buddypress-functions.php
Install buddypress and Geodirectory buddypress integration addon.
That “about me” page will be added to menu automatically.
This reply has been marked as private.This reply has been marked as private.April 27, 2016 at 3:41 pm in reply to: Split: New DS Child Theme – Supreme Directory Preview #180057Now that the said plugin has been de-activated, what would you suggest as a re-placement to achieve the desired effect on the front end.
I don’t have much experience with such plugins. If you need plugin suggestions the best place would be asking in wordpress support forums.
https://wordpress.org/support/forum/plugins-and-hacks
You can also contact scroll-to-anchor plugin author and let him know the compatibility issue.
As you stated earlier, may I know when the Supreme version 0.3.0 will be available, so that the bugs regarding the Send Enquiry and Send to Friend buttons are fixed ?
New version will be released by the end of this week.
Thanks
April 27, 2016 at 10:43 am in reply to: Split: New DS Child Theme – Supreme Directory Preview #179790@iconraju, The mobile bug is caused by
scroll-to-anchor
plugin. Please deactivate that plugin to fix that issue
April 27, 2016 at 9:19 am in reply to: Split: New DS Child Theme – Supreme Directory Preview #171762April 27, 2016 at 8:57 am in reply to: Split: New DS Child Theme – Supreme Directory Preview #171759check this reply for send enquiry related bugs.
https://wpgeodirectory.com/support/topic/supreme-directory-send-enquiry-send-to-friend/#post-171752
April 27, 2016 at 8:33 am in reply to: Split: New DS Child Theme – Supreme Directory Preview #171756The problem might have caused by one of your plugins.
Is your site live now?
Have you taken backup?
Is it ok if I deactivate the plugins and play with your site?April 27, 2016 at 8:24 am in reply to: Split: New DS Child Theme – Supreme Directory Preview #171753 -
AuthorPosts