Suggestion for frontier_list.php
-
Since the “Create New Post” button is wrapped in a table, new users who are not allowed to access the dashboard cannot submit a post using a page with just the frontier_list.php referencing shortchode ([frontier-post]) if they have no previous posts. To fix this I changed the function to a div and put it at the very bottom of the frontier_list.php file like so:
//Re-instate $post for the page
wp_reset_postdata();?>
<div class="frontier-menu" ><h2><a href='<?php echo frontier_post_add_link() ?>'><?php _e("Create New Post", "frontier-post"); ?></a></h2></div>
I wanted to avoid making a page with the shortcode [frontier-post frontier_mode=add] to reduce clutter and confusion on my site. That’s why I wanted to find a solution to the ‘Create New Post’ button not working for users with no posts. This avoids having to create a specific page to hold the text editor and submission form.
I might be silly on this one. Let me know, because so far I’m using it on a test site with wamp and it works beautifully. Sorry for the poor syntax and any bad references, it’s late and I’m dog tired.
- The topic ‘Suggestion for frontier_list.php’ is closed to new replies.