• Resolved matty10209

    (@matty10209)


    Am currently using your plugin to create a community website where users can upload their dogs (custom posts) using advanced forms. I am now looking to edit the custom posts in the front end.

    “Edit dog” points to a page (edit dog) with the page attribute (editdog.php) which contains this advance form function, so in the content-dogs.php loop

    <?php 
    	if (is_page('edit-dog') ) :
    
    	    advanced_form( 'form_5e29b57495fe8', array( 'post' => $post_id ) ); ?>
    	    
    	    <span class="read-more"><a data-id="<?php echo $my_dogs_id; ?>" class="" href="<?php echo $my_dogs_link; ?>">Back to my Dogs</a>
    	    </span>
    	    
    	    <?php
    	    
    endif ?>

    Currently, Each users dogs (custom posts) are filtered on the “View Dogs” page to that respective user, using “Author” in the wp query.

    However on my edit dog form, currently every users dogs are appearing within the drop-down field “My Dogs” (for submitting a dog into an event). Would it be possible to filter this field so only that authors “posts” are appearing?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Filtering form option, showing only posts by current user’ is closed to new replies.