Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter erismarcds

    (@tom2)

    I changed the plugins Owl Carousel, but it’s still the same.

    Thread Starter erismarcds

    (@tom2)

    Thank you, it worked.

    • This reply was modified 2 years ago by erismarcds.
    Thread Starter erismarcds

    (@tom2)

    sorry about that

    and thanks for helping me.

    Thread Starter erismarcds

    (@tom2)

    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

    Thread Starter erismarcds

    (@tom2)

    if possible how to add get_permalink (); on them

    Thread Starter erismarcds

    (@tom2)

    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);
    Thread Starter erismarcds

    (@tom2)

    I actually wanted to make the title appear. secondary title
    if you can help me thank you very much.

    Thread Starter erismarcds

    (@tom2)

    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);
    ?>
    
    Thread Starter erismarcds

    (@tom2)

    No, I want to add list of numbers not by short code.

    https://prnt.sc/h4k5mx

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