Custom Blog Post Listing in Genesis Sample Child Theme

I want to add several images and divs and also customize the look of my Blog post listing… But i can’t find the way to do it. Here’s the Blog Template code <?php /* WARNING: This file is part of the core Genesis framework. DO NOT edit this file under any circumstances. Please do all … Read more

Full width layout for custom post type pages

I’m trying to remove a widget area called ‘Primary’ from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ‘genesis_sidebar’, ‘add_mysite_sidebar’ ); function add_mysite_sidebar() { if( get_post_type() == ‘post’ ){ dynamic_sidebar( ‘News Categories’ ); } else if( get_post_type() == ‘events’ … Read more

Help with CPT template pagination

i created a themes CPT using the following code function pp_themes_post_type() { $args = array( ‘public’ => true, ‘label’ => ‘ProfilePress Themes’, ‘has_archive’ => true, ‘hierarchical’ => true, ‘supports’ => array( ‘title’, ‘editor’, ‘page-attributes’, ‘revisions’, ‘thumbnail’ ), ‘taxonomies’ => array( ‘category’, ‘post_tag’ ) ); register_post_type( ‘themes’, $args ); } add_action( ‘init’, ‘pp_themes_post_type’ ); I then … Read more

Including Custom Post Type posts in a page template contextually (or should I widget?)

Please see the attached mockup… Each element in the sidebar (e.g., Communications) will probably have to be a Page. I’m aiming for maximum flexibility. I am using Epik (a Genesis child theme). I am trying to avoid having the people who will be creating the content for this site needing to know HTML/CSS so I … Read more

how to change link of some wordpress pages

I’ve made templates for the pages of my wordpress site such as: singup,signin,suggestions. Default wordpress pages link is as follows: doamin.com/signup/ or doamin.com/signin/ or doamin.com/suggestions/ I want to just link to this page to be changed as follows: doamin.com/panel/signup/ or doamin.com/panel/signin/ or doamin.com/panel/suggestions/ Using what code can do this? 1 Answer 1 Create a blank … Read more

Dequeue theme stylesheets but keep widget styling on custom page template

Bit of an unusual one. I have created a plugin that will only display content on a custom page template. For this reason, I have dequeued all the theme styles via $wp_styles and loaded in the plugin css for this page template only custom-template.php – this is to reduce style conflicts of different themes and … Read more

Taxonomy page template changing when using query variables

I’m hoping someone can help me fill in the gaps in my understanding of page templates and query vars: I’ve registered a custom taxonomy ‘stream’, and have set up a page template for that taxonomy, taxonomy-stream.php. The page template lists an archive of posts that are using the respective taxonomy term. Everything there works fine. … Read more

Hyphens instead of Underscores in Post-type Archive Template Filenames when Post-type handle contains underscore

I’m working on implementing WordPress coding standards on a theme which has several custom post-types, each of which have underscores in their handles. The theme uses the custom post-type handle in the file-names, eg: archive-my_posttype.php for the my_posttype post-type… But WordPress coding standards require that filenames use hyphens and not underscores, ( see WordPress.Files.FileName.NotHyphenatedLowercase for … Read more