right now, I've started working with Wordpress (and PHP) for the first time in my life. I wonder how CMS works.
All main code should belong to index.php which generates the content. For example, I started making a template from scratch. It has two pages now - home (index) and portfolio. Portfolio is a page that contains image attachments.
I successfully found the way how I can get those images' thumbnails posted into the page, but then I need to pick only one random image and post it into Home (index) page.
Only thing needed is a little change of arguments, but how? I need something like...
if (page == home) then $args = ETC.
if (page == portfolio) then $args = DIFFERENT ETC.
Thank you so much for your support in advance!