Title: erismarcds's Replies | WordPress.org

---

# erismarcds

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Hello, I need help, the plugin not working.](https://wordpress.org/support/topic/hello-i-need-help-the-plugin-not-working/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [2 years ago](https://wordpress.org/support/topic/hello-i-need-help-the-plugin-not-working/#post-17727158)
 * I changed the plugins Owl Carousel, but it’s still the same.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Hello, I need help, the plugin not working.](https://wordpress.org/support/topic/hello-i-need-help-the-plugin-not-working/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [2 years ago](https://wordpress.org/support/topic/hello-i-need-help-the-plugin-not-working/#post-17727064)
 * Thank you, it worked.
    -  This reply was modified 2 years ago by [erismarcds](https://wordpress.org/support/users/tom2/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Secondary Title](https://wordpress.org/support/topic/secondary-title-2/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/secondary-title-2/#post-13200728)
 * sorry about that
 * and thanks for helping me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Secondary Title](https://wordpress.org/support/topic/secondary-title-2/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/secondary-title-2/#post-13200452)
 * I understand
 * I can make a donation and you can help me with this, if possible, or how much
   you charge to do this.
 * please
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Secondary Title](https://wordpress.org/support/topic/secondary-title-2/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/secondary-title-2/#post-13199454)
 * if possible how to add get_permalink (); on them
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Secondary Title](https://wordpress.org/support/topic/secondary-title-2/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/secondary-title-2/#post-13199424)
 * if it is not too uncomfortable help me with this thing.
 * I would also like to show the artists for each album.
 * tried this more it worked.
 *     ```
       <?php
   
                         $songId = get_the_ID();
   
                         $artistaId = get_post_meta($songId, 'theme2035_album_artista_name', true);
   
                         if($artistaId != ""){
   
                           $get_artista_name = new WP_Query( array( 
   
                               'post_type' => 'artista',
   
                               'posts_per_page' => -1,
   
                               'p' => $artistaId,
   
                           ));
   
                           if( $get_artista_name->have_posts() ) : 
   
                               while( $get_artista_name->have_posts() ) : $get_artista_name->the_post(); 
   
                               $artista_name = get_the_title();
   
                               $artista_link = get_permalink();
   
                           endwhile;
   
                           endif;
   
                         ?>
   
       <a href="<?php echo esc_attr($artista_link); ?>"><?php echo esc_attr($artista_name); ?></a>
       ```
   
 *     ```
       /**
        * Parses custom content tags in WordPress Popular Posts.
        *
        * @param  string  $html    The HTML markup from the plugin.
        * @param  integer $post_id The post/page ID.
        * @return string
        */
       function wpp_parse_tags_in_popular_posts($html, $post_id){
   
       	// Replace custom content tag {artista_name} 
           // with the actual secondary title
           if (
               false !== strpos($html, '{artista_name}')
               && function_exists('has_artista_name')
           ) {
               // If the post has a secondary title, replace
               // the content tag {artista_name} with
               // the secondary title
               if ( has_artista_name($post_id) ) {
                   $artista_name = get_artista_name($post_id);
                   $html = str_replace('{artista_name}', $get_artista_name, $html);
               }
           }
   
           // Replace custom content tag {secondary_title} 
           // with the actual secondary title
           if (
               false !== strpos($html, '{secondary_title}')
               && function_exists('has_secondary_title')
           ) {
               // If the post has a secondary title, replace
               // the content tag {secondary_title} with
               // the secondary title
               if ( has_secondary_title($post_id) ) {
                   $secondary_title = get_secondary_title($post_id);
                   $html = str_replace('{secondary_title}', $secondary_title, $html);
               }
           }
   
           return $html;
   
       }
       add_filter("wpp_parse_custom_content_tags", "wpp_parse_tags_in_popular_posts", 10, 2);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Secondary Title](https://wordpress.org/support/topic/secondary-title-2/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/secondary-title-2/#post-13199367)
 * I actually wanted to make the title appear. [secondary title](https://br.wordpress.org/plugins/secondary-title/)
   
   if you can help me thank you very much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Custom Post Types](https://wordpress.org/support/topic/custom-post-types-383/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-post-types-383/#post-13195944)
 * I would like to add thumbnail and manual title, but it shows what comes in the
   plug-in ‘<ul class = “wpp-list”>’, if you want to send my site, I don’t know 
   much about PHP. Pardon my English.
 *     ```
       <?php
       $args = array(
           'post_type' => 'post, page, <div class="img" style="background-image:url(<?php echo get_the_post_thumbnail_url( $post_id, 'large' ); ?>);">	</div>' // comma separated
       );
   
       wpp_get_mostpopular($args);
       ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebberZone Top 10 — Popular Posts] numbers posts](https://wordpress.org/support/topic/numbers-posts/)
 *  Thread Starter [erismarcds](https://wordpress.org/support/users/tom2/)
 * (@tom2)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/numbers-posts/#post-9638718)
 * No, I want to add list of numbers not by short code.
 * [https://prnt.sc/h4k5mx](https://prnt.sc/h4k5mx)

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