Display custom post types from WordPress RSS feed as HTML

Multiple States Knowledge Base

I was working on a RSS driven newsletter for a client that need to have a web page displaying all the posts from a custom post type using the WordPress RSS feed.

First I needed to get the correct feed URL. The feed URL for custom post types can be located using a query string in the URL:

http://your-wordpress-site.com/feed/?post_type=yourcustomposttype

Replacing the your-wordpress-site.com with the url of the site you will be getting the feed from. And change yourcustomposttype with the name of your custom post type.

See: https://codex.wordpress.org/WordPress_Feeds

We can then use PHP to load the feed in to an array and loop through each elements tag name and pull the values we need and echo them to the page:

Big thanks to this question on stack over flow and several of the answers http://stackoverflow.com/questions/3346628/retrieving-rss-feed-with-tag-contentencoded

View original post

Advertisements

I guess we should all learn to speak Russian

Ends and Beginnings

“…I did not have communications with the Russians.”- Attorney General Jeff Sessions during his confirmation hearings 

I got to be honest, this Trump, Trump associates, Trump cabinet picks, Putin, Russian thing is beginning to make me a little nervous. First there were questions about Trumps one-time campaign chair Paul Manafort. And then Trump’s former campaign foreign policy adviser Carter Page. And then Trump’s former national security adviser Michael Flynn. And now we have a Secretary of State, Rex Tillerson, who the Kremlin awarded the country’s Order of Friendship in 2012. And a Commerce Secretary, Wilbur Ross, who has invested over a billion dollars in the Bank of Cyprus, and served as its vice-chairman. A bank owned by a knownally of Russian President Putin and one that has “reportedly” bailed out our President several times but we won’t and can’t know that because, wait…

View original post 712 more words

“Our illusion only works if you participate”

Uncontrolled Opposition

Listen to these dignitaries encourage Americans to participate in their political charade and understand what they are actually saying. Just as a magician requires the participation of the audience for his illusion to be perceived, so do these political illusionist require the participation of voters to perpetuate the false reality of our electoral system.

Hamilton’s America Wants You to Vote

Joseph Stalin - Elections quote

NOW WATCH THIS!

Hacking Democracy – The Hack

Summary: Listen to these dignitaries encourage Americans to participate in their political charade and understand what they are actually saying. Just as a magician requires the participation of the audience for his illusion to be perceived, so do these political illusionist require the participation of voters to perpetuate the false reality of our electoral system.

View original post