Skip to content
Public Ticket #26411

source item

Conversation thread

SHAHABODDIN replied

Customer Reply

thanks a lot

PenciDesign Supporter replied

Staff Reply

Hi,

You should insert this code either into the functions.php file of the child theme or by using the CodeSnippet plugin available here: https://wordpress.org/plugins/code-snippets/

add_action( 'penci_action_after_the_content', function() {
    $via_name = get_post_meta(get_the_ID,'_mp_post_display_via_name', true);
    $via_link = get_post_meta(get_the_ID,'_mp_post_display_via_link', true);
    $source_name = get_post_meta(get_the_ID,'_mp_post_display_source_name', true);
    $source_link = get_post_meta(get_the_ID,'_mp_post_display_source_link', true);     if ( $via_name || $via_link || $source_name || $source_link ) {         echo '<aside class="via-source">';
        echo '  <ul class="clearfix">';
        if ( $via_name != '' ) {
            if ( $via_link != '' ) {
                echo '<li><span>'. __( 'Via', 'weeklynews' ) .'</span> <a href="'. $via_link .'" title="'. $via_name .'" target="_blank">'. $via_name .'</a></li>';
            } else {
                echo '<li><span>'. __( 'Via', 'weeklynews' ) .'</span> '. $via_name .'</li>';
            }
        }
        if ( $source_name != '') {
            if ( $source_link != '') {
                echo '<li><span>'. __( 'Source', 'weeklynews' ) .'</span> <a href="'. $source_link .'" title="'. $source_name .'" target="_blank">'. $source_name .'</a></li>';
            } else {
                echo '<li><span>'. __( 'Source', 'weeklynews' ) .'</span> '. $source_name .'</li>';
            }
        }
        echo '  </ul>';
        echo '</aside>';     } } );

Regards,
PenciDesign.



PenciDesign Supporter replied

Staff Reply

Hi,

Can you send me the theme file? I need to check the previous theme date before migrating it into the Soledad theme.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

For this specific situation, please send me your WordPress admin account details through a PRIVATE message. I will then log in and help you migrate this content.

Regards,
PenciDesign.


SHAHABODDIN started the conversation

Conversation Start

Hello

Thank you for your good template
I have a problem to transfer the previous template to your template
In the previous format, the source is mentioned for the news content that has been worked on, but I can't find this option in your format
I would appreciate it if you could guide me where the source is placed in the content that must be cited

Want to join this conversation or access attachments? Sign in first.