Categories
CMS Mastering Development Wordpress

The image is not called correctly

I am really tired of wrong attempts I want to call the pictures above the title of the article When calling, the image does not come with the title, and here is the problem thank you all while (have_posts()) : the_post(); $title = $this->getCustomFieldValue(‘book_title’, get_the_title()); $author = $this->getCustomFieldValue(‘book_author’, NULL); $linkList = array(); if(!empty($this->foreignLinks)) { foreach($this->foreignLinks […]

Categories
CMS Mastering Development Wordpress

Get get Current Page ID in functions php, meta query filter

How do I get the Current Page ID in functions php when creating an meta query filter? I’ve made many attempts but all return Null. The filter works as expected when I manually input a number, but I need it to automatically echo the current post ID. Any guidance is appreciated, thanks. $args = array( […]