Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Get Only Current User Posts
This topic contains 6 replies, has 2 voices, and was last updated by EngrMTH 7 years, 7 months ago.
- AuthorPosts
- February 12, 2016 at 1:01 am #7686
Dear Ernest,
First of all, I want to thank you for creating this awesome plugin, I think we will buy a license for every website we will create for our clients in the future.
I contacted you earlier and asked you some pre-sale questions and here is a link to my comments, I set up everything for you, and created the required form, the form that has the shortcode
[wpdreams_ajaxsearchpro id=1]
should retrieve only current user invoices.
You can navigate to this page this is your dashboard and these invoices created using your account, the search form on this page should only search in your invoices(the fourth invoices that you will find)
Please notice that this is our staging website, so you must login first in order to access it.
After finishing your adjustment please tell us how can we move your adjustments to our production website.
Also, if you released new update is there any issue if we updated our plugin, we really like our plugin still up to date with the latest version.
Warm Regards,
MohammedFebruary 12, 2016 at 1:49 am #7687I forgot to tell you that we will create other forms work exactly like this one(retrieve current user entries), the only difference is the custom post type and some other fields, how can we apply your changes on these forms?
For example, if there are a filter that contains a condition like the following:
if ( in_array( $current_form_id, array( 1, 6, 9 ) ) ) { //Get only current user entries }
So we can change/add/remove form ids from it or if there is an option in the visual form editor it will be great.
Thank you in advance,
Mohammed-
This reply was modified 7 years, 7 months ago by
EngrMTH. Reason: Remove
February 12, 2016 at 12:19 pm #7692Dear Mohammed,
Thank you for the details, it made my work much faster.
I have implemented a small snippet into one of the plugin files to filter results by author. To give you more control I have created a file in the plugin directory called form_ids.txt, where you can enter the search form IDs you want to apply this rule. (wp-content/plugins/ajax-search-pro/form_ids.txt)
Add the form IDs into the file separated by a comma as you can see there.I’m going to add an option to the upcoming release to show posts where the current user is the author, so you don’t have to worry about losing it when updates. You will only need to enable that option for each instance after updating.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 12, 2016 at 1:25 pm #7693Thank you so much, I went ahead and gave you 5 stars, you really deserve it.
Kind Regards,
MohammedFebruary 29, 2016 at 7:32 pm #7828Dear Ernest,
I wonder if I can update to the current version of the plugin? because I didn’t find anything related to this issue in the change log.
Warm Regards,
MohammedMarch 1, 2016 at 8:18 am #7829Dear Mohammed,
The current update does not have this change, please don’t update yet. I could not make a stable version, I had to delay it for the next one. Once the change appears in the update changelog, you can safely update 🙂
Best,
Thank you for understanding!
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 1, 2016 at 12:41 pm #7831No problem at all dear friend, I totally understand.
Kind Regards,
Mohammed -
This reply was modified 7 years, 7 months ago by
- AuthorPosts
The topic ‘Get Only Current User Posts’ is closed to new replies.