The Loop is used by WordPress to display each of your posts. It’s the most important set of PHP codes. Basically, it’s what displays the content you see on your homepage, your single posts, pages, archives, search results, etc. Any HTML or PHP code placed in the Loop will be repeated on each post. The Loop should be placed inside index.php and in any other Templates used to display post information.

read full article →

Bookmark and Share

php code
Some time ago I decided to give WordPress a try and convert some of my XHTML codes to WordPress. I looked for tutorials on this topic and find a lot of them and the WordPress website has lessons too. But can those tutorials and lessons be really helpful to you if you don’t know PHP and don’t understand the terminology used in them? I was a little bit confused by the huge amount of information at the beginning. So let’s keep it simple at least for now.

read full article →

Bookmark and Share