Title: mrfraz's Replies | WordPress.org

---

# mrfraz

  [  ](https://wordpress.org/support/users/mrfraz/)

 *   [Profile](https://wordpress.org/support/users/mrfraz/)
 *   [Topics Started](https://wordpress.org/support/users/mrfraz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mrfraz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mrfraz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mrfraz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mrfraz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mrfraz/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tag Groups is the Advanced Way to Display Your Taxonomy Terms] Problems with "öäü"](https://wordpress.org/support/topic/problems-with-oau/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years ago](https://wordpress.org/support/topic/problems-with-oau/#post-4097680)
 * Have a look here in the source, i use the tag groups.
 * [http://www.ligareport.de/manuel-neuer/](http://www.ligareport.de/manuel-neuer/)
 * > Manuel Neuer (FC Bayern MÃ¼nchen)
 * Or in the Keywords..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tag Groups is the Advanced Way to Display Your Taxonomy Terms] Just displaying the group title](https://wordpress.org/support/topic/just-displaying-the-group-title/)
 *  [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years ago](https://wordpress.org/support/topic/just-displaying-the-group-title/#post-3479854)
 * Have some troubles with üäö when i output groupname in my theme-functions..how
   can is fix that?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Show second tag](https://wordpress.org/support/topic/show-second-tag/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years ago](https://wordpress.org/support/topic/show-second-tag/#post-4025638)
 * uuh.. i don’t understand all 🙂
    can i do a hotfix… for this tag?
 * i have only on one.. page this (bug).
 * or how can is fix it?
 * thanks!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/page/2/#post-3874007)
 * perfect, thank you very much :_)
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [echo wp_get_attachment_image](https://wordpress.org/support/topic/echo-wp_get_attachment_image/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/echo-wp_get_attachment_image/#post-3937433)
 *     ```
       <?php $meta = get_option('spielerdaten'); if (!is_array($meta)) $meta = (array) $meta; $queried_object = get_queried_object(); $term_id = $queried_object->term_id;  $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();
   
       $files = $meta['spielerbild'];
   
       if ( ! empty( $files ) ) {
       foreach ($files as $att) {
          if('' == $img) {
             echo '<img src="'.content_url().'/2013/07/default.jpg">';
          } else {
             echo $img;
          }
       } }
   
       ?>
       ```
   
 * Now he shows the replace picture… and nothing when it’s empty.
    i need default
   when it’s empty and the attached pic when.. it’s not empty?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [echo wp_get_attachment_image](https://wordpress.org/support/topic/echo-wp_get_attachment_image/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/echo-wp_get_attachment_image/#post-3937349)
 *     ```
       <?php $meta = get_option('field_id'); if (!is_array($meta)) $meta = (array) $meta; $queried_object = get_queried_object(); $term_id = $queried_object->term_id;  $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();
   
       $files = $meta['id'];
   
       if ( ! empty( $files ) ) {
       foreach ($files as $att) {
        echo wp_get_attachment_image($att); } }
       ?>
       ```
   
 * that’s my complete code now. works. show the attached image.. and nothing when
   there is no image. but i want a to show a default image, if there is no image
   attached. could you help me there? it’s code with meta taxonomy.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Get Term-ID](https://wordpress.org/support/topic/get-term-id-1/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/get-term-id-1/#post-3934869)
 * hey,
 * sorry for duplicate.
 * i found a solution..
 * $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();
 * no i search help.. for “if empty”
 *     ```
       if (empty($meta)) {
         echo 'empty';
       }
       ```
   
 * doesn’t work..
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3874002)
 * works perfect, thank you very much.
    could you even insert date and author for
   me?
 * that would be awesome… i’m not a php coder.
    i only need the ouput..
 * thank you 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873996)
 * Hm… i use this comments_popup_script()
 * It works on the frontpage,
    but recent comments works not…
 * do you have a code snippe for recent comments with
 * title (link to comment pop-up)
    author and time?
 * they i will try this one.
 * best!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873988)
 * Hey,
 * i use a single Page called Community, where the last 10 Comments should be displayed.
   And the Topic should Link to a Pop-up with Comments releated to the topic. Or
   the pop-up-comment.
 * Is that possible?
 * The Code-Snippet above do this, but without.. the pop-up. Link only to the Single
   Post.
 * Thanks for your help. Maybe we will find a solution 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873986)
 *     ```
       <?php
       $comments = get_comments('status=approve&number=5');
         foreach($comments as $comment) :?>
   
         <?php $my_id = $comment->comment_post_ID ; $post_id_comms = get_post($my_id); $title = $post_id_comms->post_title;?> 
   
           Who: <?php echo($comment->comment_author);?><br />
           About: <?php comments_popup_link('', $title, $title, 'comment-link-top', ''); ?>
           What they said: <?php echo($comment->comment_content);?><br />
           When they said it: <?php echo($comment->comment_date);?><br />
   
         <?php endforeach;?>
       ```
   
 * didn’t work? About ist blank…
 * best!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873968)
 * Page: Community
 * 20 Recent Comments
 * Topic: **Arsenal London wins**
    From: User #1 | at 4:00pm
 * Topic: **Machester City wins**
    From: User #2 | at 3:00pm
 * Topic: **FC Barcelona wins**
    From: User #3 | at 2:00pm
 * ..
 * And wenn you click on Arsenal London wins, should open the popup with the Comments
   from this post. That’s what i need. Only Comments…or popup-link..
 * Thank you for your good feedback.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873958)
 * Hey,
 * thanks for your Help.
    I want the five or ten recent comments with title and 
   onlick the popup with comments. that’s what i need. not a link to the single 
   page (my website work without single-page) rather the link to the (pop-up)-comments.
 * thank you very much 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get last comments | with pop-up link](https://wordpress.org/support/topic/get-last-comments-with-popup-link/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get-last-comments-with-popup-link/#post-3873939)
 * Hm. but how can i open the popup, when i clicked on
 * `<a href="<?php echo get_permalink($my_id) ?>#comment-<?php echo $comment->comment_post_ID?
   >" title="on <?php echo $title ?>"><?php echo $title ?></a>`
 * can you help me with the code?
    that would be great.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [order get_the_tags()](https://wordpress.org/support/topic/order-get_the_tags/)
 *  Thread Starter [mrfraz](https://wordpress.org/support/users/mrfraz/)
 * (@mrfraz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/order-get_the_tags/#post-3872619)
 * Could yo maybe implement it in my code?
    I’m not a good php coder 🙂
 * thanks!

Viewing 15 replies - 1 through 15 (of 15 total)