tangcsg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Certain Htaccess command is blocking my linux cron jobLet me make it clearer for you…. I have two cron jobs which I set them to run once per hours and once per three hours respectively using function wp_schedule_event(). Then, I disable internal wordpress cron and set linux cron to run every 5 minutes (just for testing). Surprisingly, both cron jobs were running every 5 minutes and linux cron simply ignore the interval I set with function wp_schedule_event(), but make every cron job to be run every 5 minutes. Are you clearer now?
Forum: Fixing WordPress
In reply to: Certain Htaccess command is blocking my linux cron jobthank you so much!!! My linux cron job is working now. But, I have another question here… Actually, I have two cron jobs which I set them to run at different interval (once per hour and once per three hours accordingly). If I don’t replace wordpress internal cron job with linux cron, they should be able to run at different interval. But, after I replace them with linux cron job, I guess I would only be able to select one of the interval to run both of the cron jobs at the same time. And I also found out that no matter what interval I set to run the particular function in my php script (coded in my plugin files of course), they would follow the interval I set in linux cron directives. So, do I have to merge both cron jobs and use only one interval as it seems that linux cron only allow to to set one interval for that directive?
Jerry, may I know how to make the content warning message to appear bit sooner? I noticed that it only showed up after 5 seconds the page/ post was loaded. I just don’t want the user to see any of the contents before the warning message.
Jerry, may I know how to make the content warning message to appear bit sooner? I noticed that it only showed up after 5 seconds the page/ post was loaded. I just don’t want the user to see any of the contents before the warning message.
thanks Jerry, that’s brilliant works!
Forum: Themes and Templates
In reply to: WordPress wp_nav_menu and superfishhi chrisvwic, thanks for your guides! I just don’t understand why you didn’t add an action hook to run the above codes you wrote in functions.php (which I think is residing in child theme), ie like calling action hook “wp_head” or “init”. I think you missed out something there! However, I did follow some of your works and I changed them. I used whatever your wrote in child theme’s functions.php but add/enqueue another js script for supersubs to suit my needs.
Then, I enclosed them with a function and hook to action “wp_head”. I included all these codes in parent theme’s functions.php. I had also created jqsf.js as what you did, but I included supersubs and it’s settings together. When I tested my navigation menu, I saw that my superfish animation was working as it should, but not for supersubs. I still figure out how to solve it!