Results 1 to 10 of 12
Hybrid View
-
17th Nov 2011, 02:00 AM #1OPMember
How can I add 'Edit' and 'Trash' links in my posts
how can I add edit link and trash link my wordpress post on multi page and single page
See the image. I want to add Red Bold Edit And Trash on multi page and single page
Moderated Message: NSFW image, please provide a different example ILHFFS Reviewed by ILHFFS on . How can I add 'Edit' and 'Trash' links in my posts how can I add edit link and trash link my wordpress post on multi page and single page See the image. I want to add Red Bold Edit And Trash on multi page and single page NSFW image, please provide a different example (y) Rating: 5removed
-
17th Nov 2011, 02:02 AM #2MemberWebsite's:
scrls.co.ukdo you mean on your main page you want 2 links that are edit and trash ?
then also on the single post part ?
-
17th Nov 2011, 02:05 AM #3Gone off that MollyWebsite's:
thefaggotstore.orgAdd this code anywhere underneath the title in single.php
PHP Code:<?php edit_post_link( __( 'Edit this entry', 'mav' ), '<span class="edit-link">', '</span>' ); ?>
-
17th Nov 2011, 02:14 AM #4OPMember
oh sorry Phamous I did mistakenly NSFW pic.
thanks and what about trash link and how can I do this on main page tooremoved
-
17th Nov 2011, 02:15 AM #5MemberWebsite's:
0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.org
-
17th Nov 2011, 02:20 AM #6OPMember
thanks stefan-te but Move to Trash on multi page may lead to delete all post.
removed
-
17th Nov 2011, 02:24 AM #7MemberWebsite's:
0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.org
-
17th Nov 2011, 02:21 AM #8Member
thanks stefan tearse for that sharing
-
17th Nov 2011, 02:28 AM #9OPMember
I want this function for multi page. I have to check and delete lots of post. In my blog there are 32000 post and and this is only possible on multi page. I can't do this on single page. Its taking too much time. So I need this two option on my multi page.
removed
-
17th Nov 2011, 02:34 AM #10Gone off that MollyWebsite's:
thefaggotstore.orgAdd this in functions.php
PHP Code:function wp_delete_post_link($link = 'Delete This', $before = '', $after = '') {
global $post;
if ( $post->post_type == 'page' ) {
if ( !current_user_can( 'edit_page', $post->ID ) )
return;
} else {
if ( !current_user_can( 'edit_post', $post->ID ) )
return;
}
$message = "Are you sure you want to delete ".get_the_title($post->ID)." ?";
$delLink = wp_nonce_url( get_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" . $post->ID, 'delete-post_' . $post->ID);
$htmllink = "<a href='" . $delLink . "' onclick = \"if ( confirm('".$message."' ) ) { execute(); return true; } return false;\"/>".$link."</a>";
echo $before . $htmllink . $after;
}
PHP Code:<?php wp_delete_post_link('(trash)', '<div class="post-edit">', '</div>'); ?>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 4 users browsing this thread. (0 members and 4 guests)
Similar Threads
-
[Buying] Script To Edit Pintrest Posts
By planck in forum Marketplace (Buy, Sell and Trade)Replies: 0Last Post: 13th May 2012, 04:54 PM -
Which poster can edit the posts?
By Szabortusz in forum General DiscussionReplies: 2Last Post: 17th Jun 2011, 11:21 PM -
Users not able to edit there own posts
By Lordiez in forum vBulletinReplies: 5Last Post: 27th Mar 2011, 06:42 PM -
[Hiring] Someone To Edit My Posts (Inside .txt Files)
By proXace? in forum Completed TransactionsReplies: 2Last Post: 15th Mar 2011, 01:24 PM -
How do users can edit Posts icon?
By duonglg in forum vBulletinReplies: 3Last Post: 23rd Feb 2011, 10:45 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...