1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

For anyone good with Wordpress! why won't my custom home page update?

Discussion in 'Blogging' started by KingDigital, Jun 3, 2015.

  1. KingDigital

    KingDigital Junior Member

    Joined:
    Apr 24, 2015
    Messages:
    121
    Likes Received:
    33
    I have the reponsive theme from cyber chimps, that comes with a custom home page that overides the usual static sample page. However i add my featured content, main head line, titles and everything then i click update, i refresh the page and the changes are not reflected its still showing the same default custom home page, anybody have any idea whats going on?
     
  2. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    7,760
    Likes Received:
    13,910
    Gender:
    Male
    Occupation:
    Death
    Location:
    Southern California
    Home Page:
    Are you using a CDN service such as Cloudflare? If you are, then style sheet changes will be reflected once the cache expires. You can see the changes immediately by changing the settings to development mode and forcing the cache to clear. If you're not using a service like Cloudflare, then clear the cache of your browser and on your website if you have any caching plugins enabled.

    In case you're wondering how you can confirm that it is a caching issue, then open your homepage, right click, and select "inspect element" or "view page source". If the changes aren't in the code, then do what I said above.
     
    • Thanks Thanks x 1
  3. KingDigital

    KingDigital Junior Member

    Joined:
    Apr 24, 2015
    Messages:
    121
    Likes Received:
    33
    I am not using a cloudflare or any CDN for that matter so i don't think thats the issue. I did however clear cache with something called Wp cache that funny enough came automatically installed as a plug in with wordpress. i cleared it and the custom homepage did finally update. the problem is the problem comes back again unless i constantly clear cache, is it neccessary to always clear cache when updating a custom home page? is there an easier way to do this? like a way to automate this process? what do you think. By the way thank you so much for the help so far.
     
  4. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    7,760
    Likes Received:
    13,910
    Gender:
    Male
    Occupation:
    Death
    Location:
    Southern California
    Home Page:
    You're welcome!

    WP Cache has an option called "Don't cache for known users" in the plugin's settings page that could work for you. The other option is to disable WP Cache while you're working on your website.

    You can also try using incognito mode (Google Chrome) when working on your website.
     
    • Thanks Thanks x 1
  5. KingDigital

    KingDigital Junior Member

    Joined:
    Apr 24, 2015
    Messages:
    121
    Likes Received:
    33
    thanks im gonna use wp cache and select the option don't cache for known users to see how it goes! once again thanks a lot for the help
     
    • Thanks Thanks x 1
  6. member8200

    member8200 Regular Member

    Joined:
    Aug 9, 2014
    Messages:
    475
    Likes Received:
    33
    Here are some tips for you

    The function update_post_meta() updates the value of an existing meta key (custom field) for the specified post.

    This may be used in place of add_post_meta() function. The first thing this function will do is make sure that $meta_key already exists on $post_id. If it does not,add_post_meta($post_id, $meta_key, $meta_value) is called instead and its result is returned.
    Returns meta_id if the meta doesn't exist, otherwise returns true on success and falseon failure. It also returns false if the value submitted is the same as the value that is already in the database.
    Please note that if your database collation is case insensitive (has with suffix _ci) thenupdate_post_meta and delete_post_meta and get_posts will update/delete/query the meta records with keys that are upper or lower case. However get_post_meta will apparently be case sensitive due to WordPress caching.