Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // good ?>
- <div class="foo" id="bar">
- <a
- href="<?php
- add_query_arg(
- array(
- 'id' => get_current_user_id(),
- 'hash' => wp_hash($info)
- )
- the_permalink()
- );
- ?>"
- alt="Click Me!"
- rel="follow"
- title="<?php the_title_attribute(); ?>"
- target="_blank"
- ><?php the_title(); ?></a>
- </div>
- <?php
- // better
- $_cw->blog->post_link(TRUE , // turn echo on
- array( // args array
- 'wrap_tag' => 'div',
- 'wrap_class' => 'foo',
- 'wrap_id' => 'bar',
- 'target' => '_blank',
- 'alt' => 'Click Me!',
- 'rel' => 'follow',
- 'text' => $_CW->blog->post_title // visible text of link
- 'query' =>
- array(
- 'id' => $_cw->user->id(),
- 'hash' => $_cw->secure->hash($info),
- )
- )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment