Hello, I am using the code below to add a class to my navigation determined by a custom field. This works fine in all pages but does not work for the page designated the "Posts Page" (index.php). The code is placed in header.php. Please let me know why it is not working or how to make this work?
I don't see any result on the posts page from the variable $nav_style.
I tried adding global $post; to my code and this didn't work unfortunately. This works fine on all single pages and single posts but not on the "Posts Page". Any other ideas?
Can you please share problem URL as well as access details with information about where exactly you added the code you mention.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The topic ‘[Closed] Custom field code is not working on "Posts Page"’ is closed to new replies.