wpismypuppet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Nivo slider not workingIt sounds to me like you are either loading NivoSlider before jQuery is being loaded, or you aren’t loading the NivoSlider script itself at all. Can you show the way you make these calls?
Forum: Plugins
In reply to: [Columnizer] Problem with paragraph tagsSee this thread…
http://wordpress.org/support/topic/can-i-remove-the?replies=2
Let me know if it helps.
Forum: Plugins
In reply to: [Columnizer] Can I remove the line break?This is actually a problem with the way WordPress adds <p> tags around shortcodes through
wpauto. I use this fix, which I placed at the bottom of columnizer.php.//Clean Up WordPress Shortcode Formatting - important for nested shortcodes //adjusted from http://donalmacarthur.com/articles/cleaning-up-wordpress-shortcode-formatting/ function parse_shortcode_content( $content ) { /* Parse nested shortcodes and add formatting. */ $content = trim( do_shortcode( shortcode_unautop( $content ) ) ); /* Remove '' from the start of the string. */ if ( substr( $content, 0, 4 ) == '' ) $content = substr( $content, 4 ); /* Remove '' from the end of the string. */ if ( substr( $content, -3, 3 ) == '' ) $content = substr( $content, 0, -3 ); /* Remove any instances of ''. */ $content = str_replace( array( '<p></p>' ), '', $content ); $content = str_replace( array( '<p> </p>' ), '', $content ); return $content; } //move wpautop filter to AFTER shortcode is processed remove_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' , 99); add_filter( 'the_content', 'shortcode_unautop',100 );What is essentially does is removes WordPress’s auto formatting for the shortcode only, then adds it back so the rest of the content (between the
[fourcolumns][/fourcolumns]) gets the formatting back.I am going to send this to the author of the plugin and maybe it’ll make it into the next update.
Forum: Fixing WordPress
In reply to: Display latest 12 photos from media library1. WP Codex IS brilliant… and useful.
2. You are NOT an idiot…It’s always good to try new things to learn more about it. And that’s why this forum is so great! Lots of people here willing to help out and shed some light.
What makes you not an idiot is the fact that you went to a suggested area and actually READ the information… something a lot of people don’t do. They expect people to do the work for them. In reading, you found your solution and, best of all, you understand what it does.
Don’t be so hard on yourself… Learn from your mistakes, learn from others, and be open minded and willing. You are all those things… FAR from an idiot 🙂
Please mark this post as resolved so others know you are all set. And happy coding!
Forum: Fixing WordPress
In reply to: Display latest 12 photos from media libraryIt actually doesn’t crash. If you look at the source code it’s pumping out images, but it seems to be filtering them through timthumb:
<img title="img015" src="http://sp3rybnik.pl/wp-content/themes/sp3-theme/timthumb.php?src=http://sp3rybnik.pl/wp-content/uploads/2013/01/img01513.jpg&w=350&h=500&zc=3">If you remove the timthumb piece, the images show just fine. Are you purposely using timthumb? The code you provided above IS using it, but I assumed you intended on doing that. You can switch this line:
echo '<a href="'.$url.'"><img title="'.$title.'" src="'.get_bloginfo('template_url').'/timthumb.php?src='.$img.'&w=350&h=500&zc=3"></a>'to this line:
echo '<a href="'.$url.'"><img title="'.$title.'" src="'.$img.'" /></a>'and it should work fine. If you want the images smaller, then you’ll want to change:$img = wp_get_attachment_url($attachment->ID);to use wp_get_attachment_image to get the actual size you’re looking for.
Forum: Fixing WordPress
In reply to: Display latest 12 photos from media libraryLooks like the code you have will work… the only problem is your reference to the ‘post_parent’ in your $args. Just remove that from the $args and you won’t be looking for a specific post… instead you’ll get the latest 25 attachments!
Also, your
$title = get_the_title($attachment->post_parent);//extraigo tituloshould be changed to$title = get_the_title($attachment->ID);//extraigo titulobut that’s about all that I see that’s holding you back. I haven’t tested it, but it should work.The only downfall to this is if you’ve upload PDF documents, or things other than images, you’ll have to write a code to check for that, as this code gets attachments, not necessarily images only. But that’s an easy fix. Let me know if it works out!
Forum: Fixing WordPress
In reply to: Gettin child page linksNo problem… in all my years of coding I’ve come to realize that 9 times out of 10 there’s already a function to accomplish what I need done. And if it doesn’t do exactly what I want, at least I have a good starting point to work from :). Glad I could help…
If this topic has been resolved, please mark it appropriately so other people know you are all set. Thanks in advance!
Forum: Fixing WordPress
In reply to: Weird drop-down problemI tried this in IE7-IE9, Firefox, chrome, opera, safari and I can’t duplicate your problem. The menu works fine in all but IE7… and the problems in IE7 aren’t even close to your original post!!! 🙂 But then again, it’s IE7… what do we expect?
Forum: Fixing WordPress
In reply to: Gettin child page linksYou are over complicating this… it’s nice to write your own functions, of course! That’s how we learn… but why reinvent the wheel? Look into
wp_list_pages():http://codex.wordpress.org/Function_Reference/wp_list_pages
Read through to understand the function and parameters, but pay special attention to the section labeled “List subpages even if on a subpage” as it does exactly what you are looking for.
Forum: Fixing WordPress
In reply to: Sizing Background Image to WindowNo problem… please mark this as resolved so everyone knows you’re good to go. Thanks.
Forum: Fixing WordPress
In reply to: Sizing Background Image to Window@andrew Nevins
Agreed…@dcannon115
Here is an article to get you started though… It’s a good one and read through the whole thing since it gives different solutions based on your audience.Forum: Fixing WordPress
In reply to: Controlling CommentsNo problem… that kind of stuff happens to me all the time. Glad I could help. If you are good, please mark this thread as resolved so other people know you’re good. Thanks.
Forum: Fixing WordPress
In reply to: Footer not sticking tried everythingWell, first of all… you are rude and I have half a mind not to bother helping you anymore. Second, the reason your grey area is so large is because you are doing your “sticking” piece WRONG.
You have set height’s of 3000px and ridiculous padding on your #content-shadow div. Just because the footer is “sticking” doesn’t mean it’s right. And technically the footer isn’t sticking, it’s just so unbelievably large that it’s going to sit down there no matter what.
Relax and read up on how it’s done properly and learn something. You are frustrated because you want people to do the work for you. Learn how to do it properly yourself by reading documentation given to you by people who are knowledgeable and know what they are talking about. That is the point of these forums… to learn. Not to get free work.
Forum: Fixing WordPress
In reply to: Controlling CommentsThis should clear some things up for you. It’s a bit to read, but answers all of your questions:
Forum: Fixing WordPress
In reply to: Footer not sticking tried everythingThis is the method that I use and it works IE6 and up… hope this helps:
http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page