badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

php code in syndicated posts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16839
    contact
    Participant

    Hi there,

    I have some posts on my blog that are published via an rss feed, I would like to be able to quote the source of the posts automatically, but i am not sure where to include the code.

    The code I have found is the following:

    <?php if (is_syndicated()) : ?>
    <?php $title = get_syndication_source(); ?>
    <p class=”source”>This syndicated post originally appeared at <a
    href=”<?php the_syndication_source_link(); ?>”><?php
    print htmlspecialchars($title); ?> on <a
    href=”<?php print get_syndication_permalink(); ?>”><?php
    the_time(‘j F Y’); ?></p>
    <?php endif; ?>

    Usually this should go in content.php after the_content, however I am not sure where to place this in the Interface Free Theme code. Is there a way to include it?

    Thank you in advance!

    Edo

    #16890

    Hi contact,

    If you need code customisation then We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.

    http://codex.wordpress.org/Child_Themes

    The file is inside interface (theme folder) -> inc -> structure -> content-extension.php

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.