• Hi Guys.

    I created a page called News for the blog section of the site.

    I also created some custom fields to add images to pages.

    The images are displaying fine on all pages, except the News (homepage for blog). When I edit the News page it shows the images I have added to the page, but when I try and query the values of the News page, I get nothing.

    Also when I check the ID of the page, it is not the News ID, but the ID of the latest blog post.

    Any ideas how to access the data from the News page custom fields?

    Cheers

    P.S I realize this might be somewhat confusing, so feel free to ask if anything is unclear. D.S.

Viewing 1 replies (of 1 total)
  • Reset the query before calling the another.

    Sometimes you might lose the ID when calling multiple times. This happened not to long ago to fix it, I store the page ID in a variable before doing anything else and when I wanted to the get the ID of the current page I called the variable I stored it in instead if the traditional ways

Viewing 1 replies (of 1 total)
  • The topic ‘Using custom fields on blog "home page"’ is closed to new replies.