admin管理员组

文章数量:1323330

I am posting data in wordpress but after click on public it is showing

This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.

I dont have any idea how to resolve this. I am using wordpress4.1 Screenshots

After click on publish

I am posting data in wordpress but after click on public it is showing

This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.

I dont have any idea how to resolve this. I am using wordpress4.1 Screenshots

After click on publish

Share Improve this question edited Apr 7, 2015 at 10:40 Pieter Goosen 55.4k23 gold badges115 silver badges210 bronze badges asked Feb 27, 2015 at 5:29 xrcwrnxrcwrn 531 silver badge9 bronze badges 12
  • Could you please attach some screenshot so we can have an idea of your issue? – jepser Commented Feb 27, 2015 at 5:34
  • You will need to give more info on this. From what you have given, I can only speculate that you are using custom post types which is excluded from the main query, and this will lead to the failure you are seeing visiting your homepage – Pieter Goosen Commented Feb 27, 2015 at 5:35
  • @PieterGoosen ,@jepser Please see the edit – xrcwrn Commented Feb 27, 2015 at 5:46
  • That does not help at all. My question is, are you using custom post types? If not, then it is impossible to say what is causing this, and might be theme related, something in the region of a custom filter, bad template file ... – Pieter Goosen Commented Feb 27, 2015 at 7:31
  • NO not using custom post types – xrcwrn Commented Feb 27, 2015 at 9:16
 |  Show 7 more comments

5 Answers 5

Reset to default 1

Please reset your permalink. Go to http://yourdomain/wp-admin/options-permalink.php and just click Save Changes button.

Edited: Try these steps:

  1. Make sure the homepage exists. Go to Settings > Reading options, see which page is used for homepage and check this page's status.
  2. Update WordPress. Keep backup before you proceed.
  3. Check each of the plugins. Deactivate and re-activate one by one and see what happens.
  4. It may happen that modSecuriy process is checking the wp-admin and the input of data. Edit the modsecurity whitelist-

vi /usr/local/apache/conf/modsec2/whitelist.conf

Add this code

<LocationMatch "/wp-admin/*"> SecRuleEngine Off </LocationMatch>

then restart apache. /etc/init.d/httpd restart

This is can be because of following reasons.

1.Premalink problem. Go to settings -> permalinks and set to default. save and check if post is now showing. If its working fine then reset premalink structure to desired one (like postname), save and check.

2.rewrite problem in .htaccess file Check if url is re-written in htaccess file or if it is then it rewrite rule is proper.

3.Url rewrite from functions.php file Check if urls are overridden in function.php file.

4.Post is in draft or not set to public

Goto settings -> permalinks option and change the common settings. Check the post again.

If this does not work then check the .htaccess file.

Did you enable WP_Debug ?

  1. Go to File Manager.
  2. Locate the wp-config.php file for your WordPress website.
  3. Click Edit for the wp-config.php file.
  4. To enable WP_Debug, add the following code to the end of the file:

    /**
    * WordPress Debugging
    *
    * Set to "true" to enable wp_debug. Set to "false" to disable.
    * Do not include quotes when setting to "true" or "false".
    */
    define( 'WP_DEBUG', true );
    

Well i had something similar and i was banging my head why when i was editing an existing post it was fine but when i was doing one on my own it was simple ... " not found "
The "key" is the slug, since i am from Greece , using Greek letters for my posts and subsequently the slug was "getting" the Greek heading it would simply won't work.
Changing slug to Latin letters was the key to "success"

本文标签: postsPublished content not displayinggetting not found message