Rene Skou
Forum Replies Created
-
Forum: Hacks
In reply to: Problem with get_categories()Hi just remove the parent, then it should work ok,
Have you looked at the codex: http://codex.wordpress.org/Function_Reference/get_categories
This function only gets triggered, when a user visits the site !
Make a real cron job instead, this article describes it: http://tommcfarlin.com/wordpress-cron-jobs/
Forum: Hacks
In reply to: When free shipping available don't show other optionsHI Mikezza
Here is the solution: https://github.com/woothemes/woocommerce/issues/1499
Forum: Hacks
In reply to: How to add another Loop to catagory pageBTW using query_posts is bad pratice use WP_Query() instead
Source: http://codex.wordpress.org/Function_Reference/query_posts
Forum: Hacks
In reply to: need media grid but with a pagination / click-through potentialHi
You should be able to get how many images a loaded in the grid, just check that number and make a function that will get the next array og images and update the view.
Forum: Hacks
In reply to: Redirect after successful wpdb->queryBut way do you need to reload ? when you just want to show a message.
Forum: Hacks
In reply to: Move code from template to pluginHI wpfan
A simple solution would be to put your code into a separated php file and include that in your functions.php file, that way you can call your function directly.
Forum: Hacks
In reply to: Redirect after successful wpdb->queryHi kuckovic
Can’t you just output some html content.
<?php if($wpdb) : ?> <div><p>Website succesfully added!</p></div> <?php endif; ?>Forum: Hacks
In reply to: Cron inside a pluginHi dshaner
If no one visit your site then the wp cron job will not get fired, to setup a real cron job, you need to set it up at server level.
This article describes how to setup a cron job http://tommcfarlin.com/wordpress-cron-jobs/
Forum: Hacks
In reply to: Problems using add_cap and remove_cap on user objectHI bcworkz
Thank you for clearing that up, in my case i need to add custom capabillities to specifik users, in order to control what they can do.
Forum: Plugins
In reply to: [WooCommerce] Product now showing after adding it programmaticallyHi dfcowell
Thanks it worked 🙂
Forum: Plugins
In reply to: [WooCommerce] Product now showing after adding it programmaticallyGreat 🙂 i will try that