Invalid Menu Items

I’ve identified two issues, the first, this: ‘rewrite’ => true, ‘rewrite’ => array( ‘slug’ => ‘districts’ ), Can just be this: ‘rewrite’ => array( ‘slug’ => ‘districts’ ), And the second, the reason you get invalid menu items, is because districts is being used as the rewrite slug, but, the internal namevof the taxonomy is … Read more

getting id of page

I think this is what you want: $qobj = get_queried_object(); var_dump($qobj->term_id); get_queried_object will get information about the current page. That information varies by type and content for different pages but on a taxonomy page it will give you a stdClass object with taxonomy data related to that page..

Should I create a child theme for a parent custom theme? [closed]

I would definitely avoid using 2 different wordpress themes and instead code for a more responsive website with CSS mediaqueries. It has worked out very well for me on the WordPress websites I created. If you’re not familiar with media queries, here’s a very basic rundown. HTML — <div class=”box”>hello world</div> CSS — .box { … Read more

Editing a theme

If you have no coding experience the easiest would be to add a text widget in the header section and use an image of the button and make it link to where you want it to go. Just upload the image to your media and then check the URL of the image in media. Something … Read more