Title: add/edit post not working
Last modified: March 6, 2018

---

# add/edit post not working

 *  [jerems](https://wordpress.org/support/users/jerems/)
 * (@jerems)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/add-edit-post-not-working/)
 * Hi there,
    I have an issue while trying to put a shortcode in my code. In the
   plugin I’ve set the page I wanted the shortcode in. And in this page I’ve put
   the basic Frontier shortcode.
 * In my code I’ve done this :
 *     ```
       <?php
       // If this one is in comment I've got the form for add/edit, but when submitted nothing happens. If not everything works but I've 2 forms and one is incomplete(the second)
        //echo do_shortcode('[frontier-post]');
       ?>
       <?php
       if(isset($_GET['task']) || isset($_GET['preview']) ){
               // to go for an edit or preview (there's 2 links buttons)
       	$shortcode = '[frontier-post]';
       }elseif(isset($_POST['cats'])){
       	// to go for a new post with dynamic categories
       	$shortcode = '[frontier-post frontier_cat_id="'. $_POST['cats'][1] .','. $_POST['cats'][0] .'" frontier_mode="quickpost"  frontier_force_quickpost="true"]';
       }
       echo do_shortcode($shortcode);
       ?>
       ```
   
 * There’s probably something I did wrong, but I can’t find out.
    (Sorry if it’s
   an already solved issue, I haven’t found it)
    -  This topic was modified 8 years, 3 months ago by [jerems](https://wordpress.org/support/users/jerems/).

The topic ‘add/edit post not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontier-post_c8b8b0.svg)
 * [Frontier Post](https://wordpress.org/plugins/frontier-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontier-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontier-post/)
 * [Active Topics](https://wordpress.org/support/plugin/frontier-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontier-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontier-post/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jerems](https://wordpress.org/support/users/jerems/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/add-edit-post-not-working/)
 * Status: not resolved