• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom page template issue

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom page template issue

This topic is: not resolved

Tagged: achievements plugin, custom template

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by Tal.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 8, 2015 at 7:17 am #147051
    Tal
    Member

    I'm using a plugin called Achievements. It has some custom templates to be used for displaying certain information, pages that require those templates aren't displaying correctly on my site and I need to know how to modify those templates to make them work with genesis.

    Here's an example of one of the pages, you can see it's not formatted and appears to be displaying as an excerpt instead of a nicely formatted table containing data.

    http://castletv.net/achievements

    The code in one of the template pages is as follows

    <?php
    /**
     * Author Achievement content part
     *
     * @package Achievements
     * @subpackage ThemeCompatibility
     *
     */
    
    // Exit if accessed directly
    if ( ! defined( 'ABSPATH' ) ) exit;
    ?>
    
    <div id="dpa-achievements">
    
    	<?php do_action( 'dpa_template_before_author_achievements' ); ?>
    
    	<?php if ( dpa_has_progress() && ! empty( achievements()->achievement_query->posts ) ) : ?>
    
    		<?php dpa_get_template_part( 'pagination-author-achievements' ); ?>
    
    		<?php dpa_get_template_part( 'loop-achievements'              ); ?>
    
    		<?php dpa_get_template_part( 'pagination-author-achievements' ); ?>
    
    	<?php else : ?>
    
    		<?php dpa_get_template_part( 'feedback-no-achievements' ); ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'dpa_template_after_author_achievements' ); ?>
    
    </div>

    Can anyone help? Thanks.

    April 13, 2015 at 3:02 am #147684
    Tal
    Member

    There's really nobody who can help me with this?

    Also.. why do modification edits show up twice in here?

    April 13, 2015 at 4:30 am #147693
    Brad Dalton
    Participant

    You could use the WooCommerce Genesis Connect plugin as a guide on how to do this.


    Tutorials for StudioPress Themes & WooCommerce.

    April 13, 2015 at 5:27 am #147695
    Tal
    Member

    Am I right in thinking you're suggesting I try and decode a plugin? That's beyond me I'm afraid... I figured what I needed to do would be something fairly simple *sigh*

    April 13, 2015 at 5:50 am #147697
    Brad Dalton
    Participant

    For starters, i would add the

    genesis();

    function to the end of the file so the default hooks and markup are loaded and executed.


    Tutorials for StudioPress Themes & WooCommerce.

    April 13, 2015 at 6:19 am #147699
    Tal
    Member

    Thanks, I tried that already but it doesn't change anything

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble