jc62
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Posts list doesn't update in Desktop version of siteIt sounds as if there are permission issues with the cache directory. I suggest you connect to site via ftp/cpanel, and verify you have write permission to the cache directory.
Have you tried to simply disable the caching?
The caching issue and “deleted posts” issues may not be related.
Forum: Fixing WordPress
In reply to: Updating code to work with newer versions of WPAn old version of the prepare function:
function prepare($args=NULL) {
The current version of prepare function:
public function prepare( $query, $args ) {
Function prepare currently requires two parameters $query & $args. If the $args (second parameter) is null, the function simply returns. The purpose of the prepare function is to “sanitize” the query, removing any double quoted or single quoted wild cards. You could try to simply add “,NULL” to the prepare call.
I was unable to load the plugin, so I can’t reproduce your error.
I did find an alternative to this plugin, which is a paid plugin, and it may resolve your issues. Here is the link to the alternative
Forum: Fixing WordPress
In reply to: To see what posts user readArtK,
It looks like there may be a plugin that may do this for you:
https://www.ads-software.com/plugins/post-views-stats/
Forum: Fixing WordPress
In reply to: How to output a msg in a day/nighttaghaboy,
I inserted your script into footer.php, and it worked well as long as the script is after the defined span & div.
In your example, this appeared to work ok:
<span id="Bonjour">Bonjour</span> <div id="Time"></div> . . more code <?php wp_footer(); ?> <script type='text/javascript'> today = new Date(); document.getElementById('Time').innerHTML = today.getHours(); if (today.getHours() < 0 || today.getHours() >= 18) { document.getElementById('Bonjour').innerHTML = 'Test Bonsoir'; } </script>
This did not work:
<script type='text/javascript'> today = new Date(); document.getElementById('Time').innerHTML = today.getHours(); if (today.getHours() < 0 || today.getHours() >= 18) { document.getElementById('Bonjour').innerHTML = 'Test Bonsoir'; } </script> <span id="Bonjour">Bonjour</span> <div id="Time"></div> . . more code <?php wp_footer(); ?>