Jump to content
PeriniNero

[Solved] Custom Post Type & fields in Postloop. DMS2

Recommended Posts

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.

Share this post


Link to post
Share on other sites
PeriniNero

@Simon @Andrew any idea please? ;-)

Share this post


Link to post
Share on other sites
Simon

Have you thought about using wordpress actions/filters?

Or creating a simple shortcode?

The postloop section is not just 1 file, it uses functions all over the place, copying the loop section is not the best way to go about it.

Share this post


Link to post
Share on other sites
PeriniNero

Hi @Simon thank you for your attention.

Ok I understand not to mess with the postloop section :-)

What you write does ring a bell but as I'm not a tech... I have to idea how to create actions/filters nor shortcode.

I have some shortcodes from the custom fields (acf; https://www.advancedcustomfields.com/), but not sure where to add these, to include in de Postloop for this particular CPT.

Share this post


Link to post
Share on other sites
Simon

you should have access to the pro tools plugin in your account, it has an action highlight feature so you can see where actions fire on the page.

Share this post


Link to post
Share on other sites
PeriniNero

I just activated the action map part of the pro tools plugin v1.8.5, but I cant see a difference in the editing screen op pl. Should I hit another button somewhere?

Share this post


Link to post
Share on other sites
Simon

there should be a link in the admin bar that says actions

Share this post


Link to post
Share on other sites
PeriniNero

uhm, guess I dont have this one?

menu.jpgactions-pro.jpg

 

dms-menu.jpg

Share this post


Link to post
Share on other sites
Simon

top left of your screenshot ;)

Share this post


Link to post
Share on other sites
PeriniNero

@Simon damn, sorry :-) I will have a look

Share this post


Link to post
Share on other sites
PeriniNero

@Simon we are looking for support/dev docs regarding to actions/filters for DMS2? I only find the DMS1 stuff online.

Share this post


Link to post
Share on other sites
PeriniNero

@Simon @Andrew so aperently this is a huge issue for the developer we hired... Can we hire you or do you know an experienced professional wordpress/dms2 developer who we can hire to solve this??? thank you for your time, cheers

Share this post


Link to post
Share on other sites
PeriniNero

Not sure how to close this post, as it is solved.

Share this post


Link to post
Share on other sites
Simon

This topic has been marked as solved.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • jaithai
      By jaithai+
      Unable to attach an image that's already been uploaded.
      When attempting to upload one from scratch, it gives me the error seen in the screenshot. As you can see by the Chrome Inspector, I receive a 400 error.
       

    • werdnags
      By werdnags+
      Can anyone guide me please?
      I would like to learn how to achieve custom fields and going to give ACF plugin a try.  I have watched all the videos and read the documentation and all is good except I can find the template files for the pages and posts.  I believe I should be looking for the file single.php but what about posts?  Is the reason I can't find them because I am using a framework? Pagelines Framework?  How can I add my custom fields to the templates on Pagelines Framework?
      Any guidance would be appreciated please.
    • stijnxo
      By stijnxo+
      Ik like to use the following Plug-in in my DMS Theme, but can' get it to work. My DMS Editor is not loading anymore if I paste this short code in a page, textbox or mediabox: [wpdatatable id=1]
      Plug-in: WPDataTables Plug-in 
      Shortcode:  [wpdatatable id=1]
      Website: http://gentleclinics.nl/prijslijst-heren/

      Anyone experience with this plug-in and DMS.
    • foxwatson
      By foxwatson+
      I recently downloaded the latest DMS2 update. Since the download, I lost front end ability to update. Any suggestions would be appreciated.  
    • Justin Taylor
      By Justin Taylor
      I originally purchased, I believe, a 3 site licence for DMS2. The new account interface does not reveal any of this information.
      How do I know how many licences I am entitled to? How do I reset one for a new website? All it says now is that I don't have any Pro licences?
×