Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3496770
source item
Closed

Comments

  •  1
    SHAHABODDIN started the conversation

    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

    Attached files:  Screenshot 2023-10-12 082844.png

  •  2,541
    PenciDesign replied

    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 replied privately
  •   PenciDesign replied privately
  •   SHAHABODDIN replied privately
  •  2,541
    PenciDesign replied

    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.


  •   SHAHABODDIN replied privately
  •  1
    SHAHABODDIN replied
    3374701383.png
  •  2,541
    PenciDesign replied

    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.



  •  1
    SHAHABODDIN replied

    thanks a lot