WordPress object for comments frame [closed]

So long as you’re in the loop, you can just use the standard template tags: <script type=”text/javascript” charset=”utf­8″> initFrame({ app_id: “”, object_id: <?php the_ID() ?>, object_title: “<?php the_title_attribute() ?>”, object_content: ‘<?php echo wp_trim_words( strip_shortcodes( striptags( get_the_content() ) ), 45 ) ?>’, object_url: “<?php the_permalink() ?>”, arguments_container: “comment-naqeshny”, width: 610 }); </script>

Displaying Custom Taxonomy without a hyperlink

Use get_the_terms instead of the_terms. http://codex.wordpress.org/Function_Reference/get_the_terms Something like this should do the trick: $terms = get_the_terms( get_the_ID(), ‘ehp_volumes’ ); $term_count = count( $terms ); if ( $term_count > 0 && ! wp_error( $terms ) ) { $terms = array_values( $terms ); // reset keys for easier looping. by default the key matches the term id … Read more

Get the ID of category page with or without any posts

Make use of get_queried_object_id() in your category page. This will return the ID of the category. This is really useful little function. It will return the the: author ID on an author archive page term ID on a taxonomy, tag and category archive pages post ID on a single post page page ID of a … Read more

Add HTML to Term Description

The only way I can see for getting this to work is running the output through html_entity_decode() and stripslashes() and saving it with esc_attr(): Saving the term: $wpdb->update( $wpdb->term_taxonomy, array( ‘description’ => esc_attr( $_POST[‘_term_desc’] ) ), array( ‘term_id’ => $term_id ) ); Showing the term on the front end: echo apply_filters( ‘the_content’, html_entity_decode( stripslashes( $term->description … Read more