wpmhweb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove the first line of content from postsI thought I was the only one! Let’s hope somebody help us out!
Forum: Themes and Templates
In reply to: How to query and display one post in the sidebarThank you guys,
Both worked, jnhghy was more specific to what I was looking for. After testing I also found out that you need<?php wp_reset_query(); ?> at the of the<?php endif; ?> if not single.php will always display the one post I am querying.Thanks,
Forum: Themes and Templates
In reply to: How to scan content and insert css on a WordPress post?I am going to add a little more detail and see if anyone could help me with this situation.
I would like to add some custom css to the number in each step of how-to guide I write and I happen to know that every step start with a number and a period (e.g. 1. 2. 3. and so on). Now what i need is a filter or something to scan and change the css. but I cannot find the way to accomplish that.
thanks for the help!
Hi ccamel, you can find a workaround here:
http://wordpress.org/support/topic/plugin-wordpress-popular-posts-all-time-average-daily-views-problem?replies=11#post-2364435Thanks
I am having the same problem! And I don’t know how to fix it, help please!
Forum: Themes and Templates
In reply to: how to exclude feedburner feed custom post typesThank you it worked!
Thank you,
I was able to answer my own question:<?php $cat = get_the_category(); $cat = $cat[0]; echo '<a class="cat_box" href="' . get_bloginfo('url') . '/category/' . $cat->category_nicename . '">'; echo $cat->cat_name; echo '</a>'; ?>Forum: Themes and Templates
In reply to: How to add different css style per post in WordPress timelineOh, may be I am not saying it right, when I said WordPress timeline, I was referring to the output of all the posts in the homepage or category, etc. I guess it is called the ‘loop’?
Thank you so much for the answers!
I think this will do it.Forum: Themes and Templates
In reply to: How to add different css style per post in WordPress timelineThanks for the answer, but I don’t think this will work, what I am looking for is a little different of what you are telling me.
What I need is to show a different style per post but not per unique post, I need it for the first, second, third, forth, and fifth post to have a different style.If you know how to do this as well the help will be really appreciated : )
Thanks,I found the answer, this is what I did:
$category = get_the_category(); $args = array( "numberposts" => -1, "orderby" => "date", "order" => "DESC" ); $posts = get_posts($args); $i = 0; foreach($posts as $row){ $i++; if ($row->ID == get_the_ID()) break; }Then I just echo the result:
echo $category[0]->cat_name;
Thanks,GOT it!
This is what i needed!<?php if ( $paged < 2 ) { ?> <p>Text for first page of Category archive.</p> <?php } else { ?> <p>Text for subsequent pages of Category. Can be left out.</p> <?php } ?>Thanks
I got it fixed, I just went to the plugin’s settings page I click the button Remove Settings and that fixed it.
Thanks
Forum: Fixing WordPress
In reply to: Excerpt first line starts with two white spaces?I got it! The problem was a break between the first image in the post and the body content of the post. I just delete the one line of space between the two and now is working fine.
Thank you guys for checking on this!
Forum: Fixing WordPress
In reply to: Excerpt first line starts with two white spaces?`This is how the loop.php looks like for the excerpt:
<?php if ( is_search() ) : // Only display excerpts for archives and search. ?>
<div class=”entry-summary”>
<?php the_excerpt(); ?>
</div><!– .entry-summary –>
<?php else : ?>
<div class=”entry-content”>
<?php /* Post with thumbnail*/ ?>
<a>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_post_thumbnail( ‘home-thumbnail’, array(“class” => “alignleft post_thumbnail”), true); ?></a><?php the_excerpt(); ?>
<div class=”entry-meta-homepage entry-meta”><?php the_time(‘M jS, Y’) ?> <!– by <?php the_author(); ?> under <?php the_category(‘ / ‘) ?>–><?php edit_post_link(‘Edit’, ‘ <span class=”text-separator”>|</span> ‘, ”); ?></div><!– .entry-meta –>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘twentyten’ ), ‘after’ => ‘</div>’ ) ); ?>
</div><!– .entry-content –>
<?php endif; ?>
Forum: Fixing WordPress
In reply to: crate function and shortcode to place a link on postsGot it!!!
I found this http://codex.wordpress.org/Function_Reference/get_option
that helped me a little bit with the code below.<div class=”right”> <?php echo mam_insert_link_for_tag () ?> </div>
Thank you again for taking the time the code works 100%!!!
WordPress rocks!!!