Get Only Current User Posts

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 EngrMTH 7 years, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7686
    EngrMTH
    EngrMTH
    Participant

    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,
    Mohammed

    #7687
    EngrMTH
    EngrMTH
    Participant

    I 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 EngrMTH. Reason: Remove
    #7692
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Dear 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 :)


    #7693
    EngrMTH
    EngrMTH
    Participant

    Thank you so much, I went ahead and gave you 5 stars, you really deserve it.

    Kind Regards,
    Mohammed

    #7828
    EngrMTH
    EngrMTH
    Participant

    Dear 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,
    Mohammed

    #7829
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Dear 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 🙂
    Thank you for understanding!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #7831
    EngrMTH
    EngrMTH
    Participant

    No problem at all dear friend, I totally understand.

    Kind Regards,
    Mohammed

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Get Only Current User Posts’ is closed to new replies.