Tag Info

Hot answers tagged

2

Previous Question That answer I've linked to shows the steps you'll need to take. It probably didn't come up in your searches as you weren't using the right terms. As you're a front-end dev, this is how I'd do it based on that persons advice. Don't load anything in the template. Just have an empty ul with an id you can target, and a button to use for the ...


1

You can do that with $post->post_parent. You will have to check if child page's parent is Services page. So this is how you will check it. I assumed 123 in following code is page ID of your services page. Replace it with actual ID. if ( 123 == $post->post_parent ) { ?> <div class="col-md-2 col-sm-4"> <?php ci_e_logo('<h1 ...


1

As you have stated, pages aren't meant to have categories. I would rather look into custom post types and taxonomies, but the implementation is still up to you as I don't know your structures I have never tried this before, neither do I know if this will actually work, but you can try the pre_get_posts action to amend the main query to display pages on your ...



Only top voted, non community-wiki answers of a minimum length are eligible