Hot answers tagged

2

1. By definition The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g., in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, ...


2

You can prevent adding a script to a specific WordPress page by checking if whether we are on that page or not is_page($page_id): function add_js() { wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js", false, null); ...


2

Post type names cannot contain capital letters. So behind the scenes, your CPT is probably called projectscpt rather than ProjectsCPT - hence it not matching the value in your array.


2

If you really want to be on-the-ball then test all of your plugins and themes against the RC versions of WP when they become available. You're right that using the debugging plugins and looking out for deprecations should let you keep things up-to-date. The release announcements usually show up on https://wordpress.org/news/category/releases/


1

You have a spelling mistake in your CSS. .commentlist should be .comment-list


1

I was able to figure this out and make it dynamic. I created a variable $template that I put inside the loop, in which I stored the page template. $template = get_post_meta( $post->ID, '_wp_page_template', true ); Then, I utilize this where I need the child pages to show up. <?php include(locate_template($template)); ?> This is working for me ...


1

The left padding will be the default 40 pixels added to a ul by the browser. When I style WP menus I use this to make sure all browsers are happy: .blog-nav li, .blog-nav ul { padding: 0; margin: 0; }


1

In answer to my question (and in case anyone is interested), this seems to be the best solution: <?php $service_meta = get_post_meta(get_the_ID()); ?> <p><?php echo $service_meta['_cmb2_service_name'][0]; ?></p>



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