Best way to distribute templates and code accross multiple wordpress sites?

You can bundle the files into a plugin. For the Christmas page, you could use the page_template filter – This question gives you an example on how to use it – Create custom page templates with plugins? For the CSS/JS file, you can add them using the wp_enqueue_scripts action, as you would normally use in … Read more

Template Tag Does Not Work in Page Template

The reason your post is not displaying properly is because functions such as the_title(), the_permalink(), and the_content() ( called Template Tags ) can only be used whenever inside “The Loop” or whenever set up properly. There are two options to display your content properly: Functions: get_post(), setup_postdata() and wp_reset_postdata() First you would need to get … Read more

Posts are not looping through correctly

I just tested the following example code: <?php $the_query = new WP_Query( array( ‘posts_per_page’ => 12, ‘paged’ => get_query_var(‘paged’, 1) )); if ( $the_query->have_posts() ) { // display #ajax wrapper only if we have posts echo ‘<div id=”ajax”>’; while($the_query->have_posts()) { $the_query->the_post(); ?> <article <?php post_class(); ?>> <div class=”row”> <div class=”col-md-4″><?php the_post_thumbnail(‘medium-thumbnail’); ?> <h2><a class=”post-title” href=”https://wordpress.stackexchange.com/questions/252035/<?php … Read more

How do I edit text displayed on my browser tab?

You can either use this code in your function.php remove_all_filters( ‘wp_title’ ); add_filter(‘wp_title’, ‘filter_pagetitle’, 99,1); function filter_pagetitle($title) { $title = get_bloginfo(‘name’); return $title; } Or install plugin like Yoast SEO. EDIT : Screenshot UPDATE : Change header.php in your theme folder if above solution doesn’t work for you. <title><?php get_bloginfo(‘name’); ?></title>