pages with certain category posts

Hi. I am using some old code, which worked once, to pull only posts of category 2 onto the page “artists”.

if (is_page(‘artists’) ) {
$cat = 2;
elseif (is_page(‘to-come’) ) {
$cat = 3;
elseif (is_page(‘on-tour’) ) {
$cat = array(4);

it does not work any more ! I moved it to a new WordPress.. and something goes wrong 🙁 it permanently shows all posts on all pages, a part from the HOME page .. hmm.. any idea how I could change that ? or maybe I just missed a point at the end of the line doh ..

thank you !

The page I need help with: [log in to see the link]

Source link