Kyle Phillips
Forum Replies Created
-
Forum: Plugins
In reply to: [Nested Pages] SuggestionsRE: Post IDs
IDs are visible when you quick edit a post (in the upper right corner).As far as translations… they are the result of users kind enough to submit them via Github pull requests. The specific string above is part of a feature that is relatively new. I’m more than happy to accept pull requests with updated translations.
You might want to make sure your DB prefix in your wp-config is correct.
Forum: Plugins
In reply to: [Favorites] How to remove admin-ajax?Ajax is core to the plugin functionality, and admin-ajax.php is the means of accessing content via AJAX in WP.
If you need a non-ajax solution, this plugin probably isn’t the best fit.
Forum: Plugins
In reply to: [Nested Pages] Bug after changing the Template used by a pageVersion 1.4.1, just released will clear this up.
Sorry for the scare… I can confirm that other posts’ data was unaffected.
Forum: Plugins
In reply to: [Favorites] Button not visible for all posts on archive pageNo problem, glad it was resolved.
Forum: Plugins
In reply to: [Favorites] Button not visible for all posts on archive pageIn order to rule out a Javascript error/issue, could you temporarily disable the plugin scripts? The buttons will not function, but they should still show up:
add_action('wp_enqueue_scripts', 'deregister_favorites_scripts'); function deregister_favorites_scripts(){ wp_deregister_script('simple-favorites'); }If you’re using the button function inside the loop, the post ID is unnecessary. It shouldn’t matter whether or not you pass it in though.
Assuming all posts in that loop are of the same post type? If not, are all affected post types enabled in the plugin settings?
Forum: Plugins
In reply to: [Favorites] Tip for Buddypress Users – Links in User ListFYI, the filter ‘simplefavorites_user_list’ has been added to the user list.
The filter includes 3 parameters: output, users, and anonymous count, and returns the output.
Here’s a simple example using a link structure similar to above:
https://gist.github.com/kylephillips/82b9fa6965cc67433275Forum: Plugins
In reply to: [Favorites] Delete list itemsThe button serves the same purpose as “remove from list”.
Since this issue was first posted, the list functionality has been updated to include the option of including buttons.
The lists have also been updated to dynamically add/remove items when a user adds/removes favorites (without page load).
Forum: Plugins
In reply to: [Favorites] Can't style my list items:-(This will be something you’ll want to address in your theme’s CSS.
You can target the list element with the class ‘.favorites-list’.
Here’s a simple example of styling the list:
http://codepen.io/kylephillips/pen/yNrWzd/Forum: Plugins
In reply to: [Favorites] Favorites List Doesn't Display Per MemberFor anyone else having this problem, it should be resolved in v1.2.2.
The issue was a javascript / page cache issue in which lists were being replaced with the current user’s list on load regardless of the user specified in the function.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsThere are separate views for AJAX and non-ajax forms, both in the “views” directory. It sounds like you’re using the non-ajax version.
Search functionality is contained within the app/Services/LocationSearch directory/namespace. There is a form listener class in the Listeners directory/namespace called LocationSearch that handles some of the form data.
I’m sure you’re aware, any updates to the plugin will override these changes you’re making.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsNot sure I understand the question fully.
If you’re adding additional select fields to the search form manually, the data will be lost in the form processing… the search query itself would need to be manually updated to include that criteria. That would become pretty complex.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsAdditional search fields are not currently possible.
Forum: Plugins
In reply to: [Favorites] Tip for Buddypress Users – Links in User ListThe next release will include a filter to alter the HTML output, so you’ll be able to make updates without changing core plugin files.
Forum: Plugins
In reply to: [Favorites] Link to remove items in favorites list?This has been added in v1.2.0.
You can use the shortcode
[clear_favorites_button]to show the button. It has 2 optional parameters, site_id & text. So, if you wanted the button to say “Clear Favorites” it would be[clear_favorites_button text="Clear Favorites"]There’s also a couple of template functions that accept the same parameters:
get_clear_favorites_button()andthe_clear_favorites_button()As far as removing an item from the list when someone unfavorites it… that has also been added in 1.2.0. The option has been added to include the button when generated the list.
Documentation for all this is up on the plugin website. If you have page cache enabled, you may need to delete the cache to get the “auto” list updates working.