Jump to content

Archived

This topic is now archived and is closed to further replies.

Audun MB

Custom post type templates, quick question

Recommended Posts

Audun MB

I'm using plugins such as Events Manager and WP Glossary. Basically I need to edit the meta information and the breadcrumb for the custom post types Event and Term. The plugins instruct me to add a single-event.php and single-glossary.php in my (child) theme.

What should I use as a basis for these files? Can I use the templates in the Framework main theme as a basis (tpl-a.php)? Or should I use the whole page.php file?

 

Share this post


Link to post
Share on other sites
Simon

Can you link to the actual instructions so I can try out what they suggest. Also what exactly are you trying to changes? ( for events )

As for the glossary plugin, it hasnt been updated for over 2 years and only supports WP up to 3.7 so I didnt bother going anywhere with that.

 

Share this post


Link to post
Share on other sites
chrisayers

You are possibly overthinking it Audun. Try this. Create a new page called Events Manager.   Paste this in WP content loop.


 

[pl_section section="loops" id="eventsmanager"]

Now view page.

Select your CPT type from Loops Taxonomy.

Publish

Click a page and see if it looks ok. Replace WP Content Loop With Loops in builder if needed.

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • art23130
      By art23130+
      I have uploaded a file shoing missing sections for Custom Post Type
      It is OK for categories and tags but not for a single post types. 
      This is the link. 
      https://www.geoinformation.com/geocode_library/10-10570-rsg-2016-003/
      Any idea?
      thanks 
      Binder1.pdf
    • PeriniNero
      By PeriniNero+
      We are building a Custom Post Type with Custom Fields and Custom Taxonomies.
      The only thing we dont understand is how to embed the Custom Fields including header tags and stuff in the Postloop (now we use a text-box below the postloop section but also SEO wise this is not best pratice).
      So we thought to copy the dms Postloop section to our child theme and rename this, to add an extra Postloop section to our theme. Is this the way?
      What exactly to adjust in those 3 files class.posts.php, section.php and style.less (at this point we know how to change the thumb LOL) and where to add the Custom Fields shortcodes?
      Thanks.
    • ketri
      By ketri
      Hello,

      When I select a page template for a custom post type page, it also selects the same template for the children of this custom post type. 
      I want to have my custom post type template as a heavily customized loop that I've developed myself, and the children (they are articles) as a completely another template.
       
      Is there a function that would allow me to select different templates for them on DMS?

      Thank you very much in advance.
    • dawsonbarber
      By dawsonbarber+
      Hi Enrique
       
      I want to add a Starbar to a Custom Post Type.
       
      I've tried to simply copy/paste the full section code from the source code, but the animation doesn't happen.
       
      Any idea on what I'm missing/doing wrong?

      Cheers
       
      Dawson
    • dawsonbarber
      By dawsonbarber+
      I just noticed that blog posts use <h2> for the post title. Custom post type posts also default to <h2>.
       
      I checked the source code on a number of posts and couldn't find any evidence of an <h1> tag.
       
      Just to see what would happen, I enabled Legacy mode, checked the source code, and saw that blog post titles and custom post type post titles were both wrapped in <h1> tags.
       
      What's the deal with this?
×