thinkshovels
Forum Replies Created
-
The issue was it did not work, period. After installing it, updating pages errored out – resolved after deactivating. Also, the shortcode was printing out on the front pages. I went to your support page, saw that you offered no technical support as per your pricing scheme to the standard edition user and decided this plugin was not for me. To be fair though, you got caught being reviewed after a bit of a brawl I’m having with my ISP and some of my disgruntledness may have inadvertently spilled over into the review. I still stand by my position that your pricing scheme is a bit ridiculous and greedy. As a developer, I am not going to pay more for the developer license if it is cheaper to go with a single domain license, and the fact that you disable updates for the free plugin is ridiculous. Just my opinions.
Forum: Hacks
In reply to: WordPress category query from Magento/WHMCS returns wrong resultTurns out using query_posts was the problem. Updated Code that is working fine:
The synopsis of this code is to read the last 4 posts from category 5, then grab the first attachment associated with that post.
define('WP_USE_THEMES', false); require('wp-load.php'); $qarray = array('category' => '5', 'posts_per_page' => 4); $posts = get_posts($qarray); foreach($posts as $post){ $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' =>'any', 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { // Do Stuff here } } }