Adding articles to homepage list
-
When I first added the code to functions.php to add issueM articles to the homepage posts list it broke the theme, giving me a 500 error. I redid the child theme (Coller) and tried it again. This time it worked and I went merrily on my way the rest of yesterday. When I logged in this AM it was broken again and I had to delete that code. Here’s what the functions.php looks like in the child theme:
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, array( ) );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’, 10 );// END ENQUEUE PARENT ACTION
I am assuming that your suggested code (beginning with ‘function_add_articles-to-homepage’) should go after the
“// END ENQUEUE PARENT ACTION”. Is that right?If I can’t make it work, that may be OK; I am thinking of a static homepage with sliders which might include some of the articles, among other things.
- The topic ‘Adding articles to homepage list’ is closed to new replies.