Setting custom links for posts in Customizr
-
I’m trying to use the snippet for Setting custom links for the featured pages in Customizr to custom link to a post. I copied the code into my child theme functions.php and changed the lines:
`$custom_link = array(
//page id => ‘Custom link’
155 => ‘https://localhost/gr8alt/?p=155’
);`Where 155 is my id and obviously link as well but no additional link appears in my Featured Pages Options. What am I doing wrong here am I missing something?
Ultimately, what I would like to do is to feature linked to a woocommerce Product Categorie or even a specific Product. If I can get the id and url this should be possible right?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Setting custom links for posts in Customizr’ is closed to new replies.