Add new post link. Frontend Wordpress.
it is very useful to have ***add new post*** link on the top of the blog page in Wordpress blog, if you are logged in.
For this – I use something like this out of the loop in the template index.php (it depends which page in your template is responsible for showing a list of the latest posts).
It will be shown at the top or at the bottom of the blog page.
1 2 3 4 5 6 7 8 9 | <?php if (is_user_logged_in()) {?> <a href="<?php bloginfo("url")?>/wp-admin/post-new.php"> <?php _e('***Добавить новую запись***', ''); ?> </a> <?php } ?> |



