today I noticed a weird problem in my wordpress woocommerce site. The site has blog enabled. When visiting the site, I can find a blog post, can see as a visitor. But when I logged in as Admin it shows 404 error page.
Also in admin panel I can't find the post. Actually i have only one blog post, but in admin panel it's showing that I published 2 posts.
Please help to fix this
Unknown post link /club-de-gym-plan-cul-a-tours/
today I noticed a weird problem in my wordpress woocommerce site. The site has blog enabled. When visiting the site, I can find a blog post, can see as a visitor. But when I logged in as Admin it shows 404 error page.
Also in admin panel I can't find the post. Actually i have only one blog post, but in admin panel it's showing that I published 2 posts.
Please help to fix this
Unknown post link https://flixacct.club/club-de-gym-plan-cul-a-tours/
Share Improve this question edited Jun 2, 2020 at 9:14 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Jun 1, 2020 at 20:25 ashik4uashik4u 174 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 1We don't really know why this post is there but inaccessible by you, but for anyone having this issue here's how you can attempt to remove it.
You would go to any other post in your dashboard/admin, to edit it.
In your browser URL bar you'd look for this aspect of the URL:
post.php?post=xxxx&action=edit
Then, in a different browser tab, on the front end where you can see the problematic post, you want to go to the source code of that page using developer tools and in the <body>
tag look in the class=""
attribute for the following class:
postid-xxxx
(The xxxx will be the post ID number.)
You want to take that number, go back to the post you can access and in the URL bar replace the number in post.php?post=xxxx&action=edit
with the id number from the post you can't access. (In this instance it was 2546, so post.php?post=2546&action=edit
.)
Once you have this elusive post on your edit screen, you can delete it in the Publishing panel at the top right.
What this does though is move it to the 'Trash'. So now on the main post list screen you'll see 'Trash(1)' but if you click on 'Trash' you still may not see the post.
In the 'Trash' view though, you can click 'Empty Trash' and that will remove the mystery post permanently.
Now, we still don't know what caused that post or why your admin account can't access it, so keep an eye out for more of these, but at least it's cleared out now.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742377449a4432472.html
post.php?post=xxxx&action=edit
change the ID number topost=2546
so it'd bepost.php?post=2546&action=edit
and see what comes up... – Tony Djukic Commented Jun 2, 2020 at 5:14