generalsalt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to tell if a page paginates?Ok, got it.
I can use this..
$showposts = get_query_var(‘showposts’);
Forum: Fixing WordPress
In reply to: Return array from wp_get_archives()thank you!!
Forum: Fixing WordPress
In reply to: Pagenavi and WP Page Numbers both not working…If there is another pagination plugin that works with custom loops right outta the box…plzz plzz link me!!
Forum: Fixing WordPress
In reply to: wp_dropdown_categories() Top Option as SubjectOk, just figured it out. In category-template.php I added:
function wp_dropdown_categories( $args = '' ) { $defaults = array( 'show_option_all' => '', 'show_option_none' => '', 'orderby' => 'ID', 'order' => 'ASC', 'show_last_update' => 0, 'show_count' => 0, 'hide_empty' => 1, 'child_of' => 0, 'exclude' => '', 'echo' => 1, 'selected' => 0, 'hierarchical' => 0, 'name' => 'cat', 'class' => 'postform', 'depth' => 0, 'tab_index' => 0, 'top_option' => '' );
and added this to the output:
$output .= "<option>$top_option</option>";
Now top_option is available as a parameter.
Forum: Fixing WordPress
In reply to: InventoryOops double post
Forum: Fixing WordPress
In reply to: Is there a get_post_text() kind of thing?The get_children documentation is a little lacking…I was curious if the “post_type” argument or the “post_mime_type” argument can target text the way it can attachments?
Of course this is wrong..but this is what I mean..
$text =& get_children( array(
‘Content-Type’=>’text/plain’,
‘post_parent’ => get_the_ID(),
));Forum: Fixing WordPress
In reply to: Attachments links/urls driving me insane!!!!!!i tried the code with a 1 instead, within the Loop. It pulls the first picture of the Media Library in. That pulled picture (from the Media Lib) is not even in my post! When I use a -1 it pulls all the pictures from the gallery.
What I was trying to explain is that it is not pulling from my post, it is pulling from the Media Library.
I’ve tried to put the above code in the Loop, outside the Loop, in it’s own Functions file.
Thanks though…still am struggling with this.
Forum: Fixing WordPress
In reply to: wp_get_attachment_linkWhen I use the code above, it just pulls EVERYTHING from the media gallery..even when those images are not part of a post.
Forum: Fixing WordPress
In reply to: Attachments links/urls driving me insane!!!!!!for example….
In the Codex, it says put this (code below) in the Loop..do they mean in the Loop on the index.php or single.php? Because in the index.php if I have 7 posts, the code below only spits out the jpegs of the first post only. Arrrgghhh!!
<?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo apply_filters('the_title', $attachment->post_title); the_attachment_link($attachment->ID, false); } } ?>
Forum: Fixing WordPress
In reply to: Need some help with quirky Attachments problemOkay so I stuck the above code and made it a function and put it in function.php
function getPostImages(){ $theID = $post->ID; //echo $theID; $attachments =& get_children( array( 'post_parent' => $theID, 'post_type' => 'attachment', 'post_mime_type' =>'image' )); if ($attachments === FALSE) { echo 'no attachments'; } else { foreach($attachments as $attach) { $attachmenturl=wp_get_attachment_url($attach->ID); echo $attachmenturl . '<br /><br /><br />'; //$attachmentimage=wp_get_attachment_image( $attach->ID, 'thumbnail' ); } } }
I am calling it from within the Loop. It spits out the URL of every pic in the media gallery–for EVERY post.
Using the ID for each post seems like it should only spit out the photos for that particular post…OK back to the drawing board.
Forum: Plugins
In reply to: What cart plugin is the most awesome?I’ve been looking into the WP Ecommerce and it looks like that one doesn’t support Direct Payment either.
Forum: Plugins
In reply to: What cart plugin is the most awesome?The more research I do I don’t think there are ANY WordPress plugins that support Direct Payment at all.
That sucks, I really wanted to use WordPress. I don’t think I knowledgeable enough about WordPress plugins to write my own at this point…
Not a WordPress question but, are there any standalone carts that support a direct payment style checkout?
Forum: Plugins
In reply to: WP shopping cart no Paypal direct..possible?Yep, I will.
Plz do the same..
Currently checking out the YAK plugin for wordpress..I think I going to give up the WP-Ecommerce plugin…that thing is way too buggy.