I’m just wanting to have a link from a page attribute show up in a page list if one is set, and not be there if it is not.
This works but displays the URL text if an attribute isn’t set for the page. Can anyone help out? I’m not much with PHP. I’m assuming it’s some kind of If/Else?
If you’re doing this in a page list, make sure you’re doing it inside the foreach ($pages as $page) loop. In this case your $c variables *should be $page. If you could post a larger chunk of the code or send me the files I could have a closer look at what’s going on also