wpmhweb
Forum Replies Created
-
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 https://codex.www.ads-software.com/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!!!
Forum: Fixing WordPress
In reply to: crate function and shortcode to place a link on postsI have to apologize!
I asked wrong, I did put the code in a post and it worked putting the link.but what I really meant was to call the function from in a single.php and from the index.php with something like this. <div><?php mam_tag_link ?></div>
how do i call the function with the example I showed you.
Thanks!
Forum: Fixing WordPress
In reply to: crate function and shortcode to place a link on postsFirst, thank you for taking the time and coding this!
One more question.
I dont know what I am doing wrong. The code looks right, I changed the urls with the real urls and then went to single.php and I tried to call the shortcode like this: <div><?php mam_tag_link ?></div> and this didnt work also tried <div> <?php mam_insert_insert_link_for_tag ?></div> and nothing happens…I dont know if i ask right is this a shortcode <div> <?php mam_insert_insert_link_for_tag ?></div> if not, can you tell what is the name of this?
Again thank you for your help!