How can I properly loop through an array gotten from my wordpress database and display it to my site

I am trying to display some posts information from my database on my live site. I have done the query correctly because I can view the items on the live site. But I need to take three items to display. The post title, the post content which houses the images, and the post id which links to the posts. I seem to have written it correctly but it does not do anything.

Settings API: Setting default option via ‘get_option’ fails

All my options are stored in one array test_hs_options I have select list settings field ( test_hs_options[‘duration_months’] ) which stores the selected month (1-12). For this settings field, I would like to set a default option at 5. All my attempts at setting the default have failed. What am I missing? // Callback for displaying … Read more

Is it possible to display conditional HTML based on page name in wordpress?

I added a bit of custom HTML code to a website. Everything works just great. I am trying to display this HTML code based on the page name. I looked at some resources online and wrote out the code but it does not work. I have also checked online and I am only seeing ways to conditionally add CSS and JS. Is this something that is possible to do and how do I go about doing this?

Why .mo .po files are not working with my site?

I have a site with polylang installed with 3 languages. LV as default, EN and RU. For the PLURAR(polylang does not support it) strings translation I want to use poedit locally and then copy the translated mo/po files to the child theme /language folder. I tried to translate two string, copied the created mo/po files to the server, but the at the sites frontend transaltion is not shown. I have read multiple manuals and everything should be working, but nothing really happens.