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

Plugin shortcode won’t work on a custom template file [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 4 … Read more

I am trying to output portfolio items with a picture. This code doesn’t seem to be working. What am I doing wrong?

<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query(‘showposts=21&post_type=portfolio’.’&paged=’.$paged); $count = 0; while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div id=”post-<?php the_ID(); ?>” class=”boxx artistboxx one-third column <? php if ($count == 0) { echo ‘alpha’; } ?> <?php if ($count == 2) { echo ‘omega’; } ?>”> <a href=”https://wordpress.stackexchange.com/questions/280780/<?php the_permalink() ?>” title=”<?php the_title_attribute(); … Read more

Unable to include a template

On the home.php, which is in the same folder where style.css is kept I am try to call a template: <?php get_template_part( ‘template-parts/content’, ‘home-default’ ); ?> template-parts is a folder which is in the root folder same where we have style.css, like – theme-directory — template-parts — content-home-default.php — style.css — home.php Template is: content-home-default.php … Read more