Support

Home Forums Event Espresso Premium I want the search bar for EE4 plugin on the basis of events and locations.

I want the search bar for EE4 plugin on the basis of events and locations.

Posted: April 16, 2018 at 1:21 am


titan1943

April 16, 2018 at 1:21 am

Could you please help me to get the search or filter bar for my events to display on the basis of location and events name.


Josh

  • Support Staff

April 16, 2018 at 11:23 am

Hi there,

We can look into this. I should ask first for some clarification, is this the search field on the Event Espresso > Events admin page or somewhere else?


titan1943

April 17, 2018 at 2:42 am

This search field will be for the users who visits our site and search the events on the basis of events name or events locations


Josh

  • Support Staff

April 17, 2018 at 11:10 am

May I ask is the search field added by the theme or by a plugin?


titan1943

April 17, 2018 at 9:50 pm

I am asking , I want the search bar on my homepage, so that anyone can search the events on the basis of location and events name, whether its comes from plugin or theme no issue.


Josh

  • Support Staff

April 18, 2018 at 12:15 pm

Hi Titan1943,

Whether the search bar comes from a plugin or the theme will determine how the events get added to the query. Since this is more of a customization-related request, I can recommend reaching out to one of the developers listed here for a quote:

http://eventespresso.com/developers/event-espresso-pros/


titan1943

April 18, 2018 at 11:03 pm

yes , that’s what am asking does event espresso don’t have any search bar, or any shortcode for search bar to search the events on the basis of location and names


Tony

  • Support Staff

April 19, 2018 at 1:57 am

Hi there,

EE does not have that functionality out of the box, you would need a developer to create it for you.

If you would like to work with a developer we have some that are familiar with Event Espresso here:

http://eventespresso.com/developers/event-espresso-pros/


titan1943

April 20, 2018 at 6:47 am

Hi there,

EE3 has the search bar (i guess)?


Josh

  • Support Staff

April 20, 2018 at 2:08 pm

EE3 had a search shortcode that added some limited search functionality. With EE4 you have less limited search functionality because a standard Search widget can be used (or plugins like Relevannsi) can index EE4 event & venue content (because EE4 events and venues are WordPress Custom Post Types).


titan1943

April 24, 2018 at 3:24 am

okay, Is it possible that you guide me with this, like for the search bar function which database I should look for to get the value and relation for them, I am going to make my query and get the data from database for the specific search.

here is the site example I want search bar something like this:
http://www.racexasia.com/


titan1943

April 24, 2018 at 6:04 am

can you please provide me any relation between these tables?

wp_posts ,wp_esp_datetime , wp_esp_venue_meta relation


Tony

  • Support Staff

April 24, 2018 at 6:34 am

Hi there,

We don’t provide support for customizations on the forums but have you had a look at our developer documentation here:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/

You’ll probably want to start by reading this:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System


titan1943

May 4, 2018 at 6:56 am

Hello, could you please let me know where I can find the post image/ or event featured image in the database, please let me know the table or how can get the image for each event.


Tony

  • Support Staff

May 4, 2018 at 8:13 am

In what context? What objects do you have?

If you have an EE_Event object in a var $event you can use echo $event->featue_image();

Or if you want just the URL for the feature image $feature_image_url = $event->feature_image_url();

Each of those default to the thumbnail size but you can pass a different size if preferred and as EE are custom post types, the feautre images are stored in the same way WP Posts are.

We really need more context to be able to help you with the above.


titan1943

May 6, 2018 at 10:04 pm

Hello there,

Thansk for your assistance, actually I have made a search bar using ajax request and service(api), so for that I need to display the image for each events,can you please guide me on this for the image to display


titan1943

May 6, 2018 at 10:06 pm

http://www.race2gather.com/search1/

here is the url for search bar


titan1943

May 6, 2018 at 11:40 pm

could you please let me know, how is image getting store in db, beacuse when I have checked db some events featured img stored in wp_posts -> guid and some are not, please explain me why its happening, and please let me know how can I fetch them in my search bar


titan1943

May 6, 2018 at 11:44 pm

could you please let me know, how is image getting store in db, beacuse when I have checked db some events featured img stored in wp_posts -> guid and some are not, please explain me why its happening, and please let me know how can I fetch them in my search bar



Josh

  • Support Staff

May 7, 2018 at 9:53 am

The featured image ID is stored in wp_postmeta with a meta_key called _thumbnail_id. Example:

meta_id post_id meta_key meta_value
200 4 _thumbnail_id 48

The actual thumbnail link is then contained in wp_posts with a post_type of attachment. Example:

ID post_type guid
48 attachment http://example.com/wp-content/uploads/yourimage.png

Example code for retrieving the featured image outside of the loop follows:

/* get a specific post object by ID */
$post = get_post(2);
  
/* grab the url for the full size featured image */
$featured_img_url = get_the_post_thumbnail_url($post->ID, 'full'); 
 
/* link thumbnail to full size image for use with lightbox*/
echo '<a href="'.$featured_img_url.'" rel="lightbox">'; 
    the_post_thumbnail('thumbnail');
echo '</a>';


titan1943

May 7, 2018 at 10:29 pm

thanks It worked, I got the fields what you showed me , It worked with my query to fetch.

thank you so much


titan1943

May 8, 2018 at 3:54 am

Hello,

I migrated the site form local server to race2gather.com server, I guess it didn’t properly migrated, could you please guide me how to change my local ip add on with this domain.


Tony

  • Support Staff

May 8, 2018 at 4:14 am

Hi there,

Sorry but I’m not sure what you are asking above, what problem are you having on the site?

What makes you say the site didn’t migrate properly?


titan1943

May 8, 2018 at 5:54 am

like when am opening the df after the purchase I found it has missing the icon after thank you page


titan1943

May 8, 2018 at 6:21 am

pdf**


titan1943

May 8, 2018 at 6:22 am

here I mean , I have migrated the site from one server to another, db still contains the ip add of the previous one on new server


Josh

  • Support Staff

May 9, 2018 at 8:53 am

We recommend using one of the following to properly migrate a database from one server to another:

https://wordpress.org/plugins/wp-migrate-db/
https://deliciousbrains.com/wp-migrate-db-pro/
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/


titan1943

May 14, 2018 at 7:33 am

hello , i am still not figuring out the issue, can you please check and let me know how i can remove my ip address with current one

I want to remove :
http://139.59.38.156/Wordpress/ ip with currrent domain : http://www.race2gather.com/

http://139.59.38.156/Wordpress/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/images/clock-16×16.png


Josh

  • Support Staff

May 14, 2018 at 8:19 am

For that specific instance, you’ll go in to edit the Receipt template in Event Espresso > Messages > Default Message Templates. There you can click on the Reset Templates button and it will rebuild the template to its default state.

You may have some other areas in the database that still use the IP address instead of your production site’s domain, and you can use one of the above listed tools to ensure those strings in the database are correctly migrated.


titan1943

May 15, 2018 at 5:44 am

ok thanks , let me migrate the db once again and let will let you know it worked or not.

thank you


titan1943

May 18, 2018 at 6:53 am

thanks that worked,

please let me know how can I remove the example.com from mail, I checked in message but not get anything


Josh

  • Support Staff

May 18, 2018 at 3:32 pm

That’s coming from the Ticket Notice template’s Main Content section, specifically this html & shortcode:

<td align="right">
<h6 class="collapse">[COMPANY]</h6>
</td>

You can edit the Organization Name field in Event Espresso > General Settings to change what’s output there or go to Event Espresso > Messages > Default Message Templates and edit the ticket notice template from there.

The support post ‘I want the search bar for EE4 plugin on the basis of events and locations.’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 4 months, 4 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!