Tag Info

New answers tagged

0

It's informative to check out Really Simple Syndication Best Practices Profile . About the <item> tag: An item MAY contain the following child elements: author, category, comments, description, enclosure, guid, link, pubDate, source and title. All of these elements are OPTIONAL but an item MUST contain either a title or description. About ...


1

I'm afraid it's not possible to do it without any plugin. Author's image (gravatar) is not published in RSS, and it's computed based on author's e-mail address, which also is not published in RSS... But if you have control over both of these sites, then you could use JSON API/XML RPC to get the newest blog posts - then you could get all info from these ...


3

First things first, avoid defining functions inside functions. PHP doesn't have a problem with it, but it's usually a sign you're "doing it wrong" and it just leads to unnecessary headaches. Second, your foreach loop at the bottom is a little malformed. You need to define the <ul> outside the loop, and then append to $html - otherwise you just end up ...


0

You can use the template tag is_feed() to determine if the current request is for a feed: if ( is_feed() ) { // It's a feed! } else { // Regular 'ol WordPress } Note you'll need to use the function after the request has been parsed (i.e. on or after the parse_query hook).


0

Here's one way to achieve this: /** * Display a random feed in the RSS Widget * Activated by the wpse_random_url string in the feed url * * @see http://wordpress.stackexchange.com/a/187599/26350 */ ! is_admin() && add_filter( 'wp_feed_options', function( $feed, $url ) { // Modify this list of feeds to your needs: $urls = [ ...


1

Here's one idea how we could get a full control over our newsletter feed: Feed with custom posts selection and drag/drop ordering: We can use the navigational menu UI, to select exactly what posts to display in the feed and sort them with drag/drop. We need to follow these two steps: Step 1) Create a menu with the menu name newsletter under the ...



Top 50 recent answers are included