dfwgreg
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Turning second query into paged query?It worked! Thanks, alchymyth!
Forum: Networking WordPress
In reply to: Display posts from all MU blogs?Thanks, Ipstenu for recommending Diamond Multisite Widgets!
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] display feature image on front pageI know it can be done through featured images. I just wish there was an easier way.
Forum: Fixing WordPress
In reply to: Remove attachment from permalinksFound a solution
add_filter( 'attachment_link', 'wp_gallery_attachment_link', 10, 2 ); function wp_gallery_attachment_link( $link, $id ) { // If the attachment name is numeric, this is added to avoid page number conflicts $link = str_replace( 'attachment/', '', $link ); $attachment = get_post( $id ); $link = str_replace( '/' . $attachment->post_name . '/', '?attachment=' . $attachment->post_name, $link ); return $link; }http://wordpress.stackexchange.com/questions/5015/attachment-url-rewrite
Forum: Fixing WordPress
In reply to: Display two posts when it should display one postNevermind. Got it to work!
<?php $the_query = new WP_Query( array( 'brknewsitem' => 'activate','post_type'=>'brknews' ) ); $_count = 0; while ( $the_query->have_posts() ) : $the_query->the_post(); { ?>Forum: Fixing WordPress
In reply to: Display two posts when it should display one postOne more question. How do I change
post customto a taxonomy?Thanks everyone for the help,
Gregory S.Forum: Fixing WordPress
In reply to: Display two posts when it should display one postBoth worked! Thanks!
Forum: Fixing WordPress
In reply to: Display two posts when it should display one postNope, still shows two none
Forum: Fixing WordPress
In reply to: The best way to style posts based on taxonomy?Oops. I put the wrong term in the field. Should have been
brknewsitem.Forum: Fixing WordPress
In reply to: Remove title from pagesLook for <?php the_title();?> and delete it.
Forum: Fixing WordPress
In reply to: google 1Yes you can.
Either by plugins, through third-party sites like Addthis or manually inserting the code from google.com – http://www.google.com/intl/en/webmasters/+1/button/index.html
Forum: Fixing WordPress
In reply to: Two loops, second one shows duplicate postThanks alchymth, I got it to work!
Forum: Fixing WordPress
In reply to: Need help with if statement. Check if text in fieldI think I solved it.
<?php if (get_the_author_meta('twitter')) { ?><?php the_author_meta('twitter'); ?><?php } ?>Thanks,
Grgeory S.Forum: Fixing WordPress
In reply to: Display first pargraph of post without imageI found another code, this one strips the <img> tag but still displays the full post. Any idea on how to only show the first <p>?
<?php ob_start(); the_content(''.__('Read more <span class="meta-nav">»</span>', 'sandbox').''); $old_content = ob_get_clean(); $new_content = strip_tags($old_content, '<p><a><b><br /><input><form><textarea><li><ol><ul><table>'); echo $new_content; ?>Thanks,
Gregory S.Forum: Fixing WordPress
In reply to: Add additional text to photo caption?Hooray! Thanks again!