Akexis
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Adding things to the list of resultshttps://wpstorelocator.co/document/wpsl_listing_template/
Adding this code to your functions file will now let you modify the output you get for search results.
https://wpstorelocator.co/document/wpsl_frontend_meta_fields/
This explains how you can add your meta fields to the array being returned by the JSON object.
This is where you’re going to have to play around a bit. I think something like this should work?
$store_fields['wpsl_acf_field_name_1'] = array( 'name' => 'acf_field_name_1' ); $store_fields['wpsl_acf_field_name_2'] = array( 'name' => 'acf_field_name_2' );
There’s a note on the page: The part after wpsl_ in the $store_fields key has to match with the name of a meta box field.
Then in your custom template function:
$listing_template .= "\t\t\t" . '<% if ( acf_field_name_1 ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><%= acf_field_name_1 %></p>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n";
I haven’t tested this, so it might need some work.
- This reply was modified 7 years, 5 months ago by Akexis.
Forum: Plugins
In reply to: [WP Store Locator] Adding things to the list of resultsSure. Are you trying to add ACF fields to each store listing that populates in the results?
Forum: Plugins
In reply to: [WP Store Locator] Adding things to the list of resultsNevermind. I did my own asynchronous thing to add what I needed.
Adding an async callback option might be cool for down the road. Again, awesome plugin, easy to work with.
Thanks!
Forum: Plugins
In reply to: [WP Store Locator] Pass Zip Code to plugin from other page.I just bought the add-on. Thanks!
If you’re using this Enjoy Instagram plugin, the author was able to get the newest version of their plugin approved. It’s a lot more user friendly now in adding accounts – so you don’t need to go through Instagram, as a user you just approve access by the plugin.
Login to their site with the credentials you used to buy the plugin and download the new version.
Forum: Plugins
In reply to: [Enjoy Social Feed plugin for WordPress website] Invalid argument suppliedIt seems to be because no images have been moderated yet.
https://www.mediabetaprojects.com/enjoy-instagram-premium/help-and-support-enjoy/
The video on the bottom of this page shows how to moderate. Once you have selected some images to pull into the feed, the invalid argument warning should go away.
Currently my moderation panel isn’t pulling from the Instagram account and I’m trying to troubleshoot, so I can’t confirm this, but it’s a strong suspicion.
Forum: Fixing WordPress
In reply to: Im getting unwanted advert popup on my pageI also found a second copy of the website in a subfolder called “wordpress”, but haven’t been working on this website long enough to know if that was an accident by the client or an issue related to this. Same exact config file.
Going to change the database user password.
Forum: Fixing WordPress
In reply to: Im getting unwanted advert popup on my pageI thought this was being injected into the site dynamically, by a php script or something that managed to get uploaded, but then I went and looked at the source on the pages and posts in the admin. There it was, right there in the editable content.
All I had to do was go post by post, page by page and remove the scripts. (Using Text View) The weird thing is it wasn’t in all of them.
I don’t know if this has cleansed things yet, but I’m suggesting to my client to make immediate backups of everything, make sure all is updated, and change passwords. I will update if I do or don’t continue to have problems in about a week.