- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
petkusj
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220OK, unless there’s a button somewhere that turns this one that I’ve overlooked, I can’t figure out how to add an edit button/link on the posts on the “home” page of my blog. I assume somewhere I need to add a call to edit_post_link, but I don’t know whether to do that in index.php or one of the template files.
Your advice will be much appreciated.
Jennifer
AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Daniel Tara
KeymasterWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220It only displays on single-column posts, it doesn’t display on multi-column posts due to content-constrain issues.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236petkusj
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Daniel, I can certainly understand not showing an edit link to ordinary subscribers, but it would be very convenient for me, the site administrator, to be able to directly edit a post from the home page of the blog. I need little more than an icon or the word “Edit” in small print as a link. Maybe even as insignificant as making the ellipsis at the end of the abbreviated text be the edit link.
I tried adding the edit_post_link code to index.php, but the links are all crammed at the top of the container div.
The many wonderful features of this theme far outweigh the loss of the edit button, however, and so I happily continue to use Pinboard. I put it under the category of: It would be nice.
Thanks for responding, Daniel.
Jennifer
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236petkusj
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Oh, I thought I was so close. I liked the idea of making the ellipsis the edit link by overriding this function (in functions.php):
if ( ! function_exists( ‘pinboard_excerpt_more’ ) ) :
/**
* Changes the default excerpt trailing content
*
* Replaces the default […] trailing text from excerpts
* to a more pleasant …
*
* @since Pinboard 1.0
*/
function pinboard_excerpt_more($more) {
return ‘ …’;
}
endif;add_filter( ‘excerpt_more’, ‘pinboard_excerpt_more’ );
I thought instead of just returning the ellipsis, it could also wrap the ellipsis with edit_post_link, but I forgot edit_post_link only works in TheLoop.
It would also mean that non-administrators would see the edit link, but it would be cunningly disguised as an ellipsis. Unless they were logged in as an administrator, it wouldn’t work anyway.
Jennifer
Tagged: edit button
You must be logged in to reply to this topic.