Guest User

Untitled

a guest
Nov 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. the_permalink();
  2.  
  3. category_description();
  4.  
  5. /**
  6. * Pass in a taxonomy value that is supported by WP's `get_taxonomy`
  7. * and you will get back the url to the archive view.
  8. * @param $taxonomy string|int
  9. * @return string
  10. */
  11. function get_taxonomy_archive_link( $taxonomy ) {
  12. $tax = get_taxonomy( $taxonomy ) ;
  13. return get_bloginfo( 'url' ) . '/' . $tax->rewrite['slug'];
  14. }
  15.  
  16. echo get_category_link( get_queried_object_id() );
Add Comment
Please, Sign In to add comment