• 0

Accordions Accordions Custom Post Type

Question

Posted · Report post

I have recently installed the Accordions section into my DMS. When I add a new Accordions, it works fine, but as soon as I edit it, it saves it to "Posts" instead of the "placcordions" custom post type. There is no post type called accordions in the drop down list, which is why it is acting that way. I have WordPress 3.8.

 

Thanks,

Amy

 

 

Share this post


Link to post

5 answers to this question

  • 0

Posted · Report post

abielski Great, the plugin author added a filter so we can add the placcordions post type.

 

You will need to add this to the functions.php file in your child theme. If you are not using a child theme, here is a blank DMS Child Theme.

 

Now, add this code to the theme and you should be all set.

function add_placcordions_cpt() {
	
	$args = array(
			'type' => 'placcordion'
	);
}

add_filter('pts_post_type_filter', 'add_placcordions_cpt');

Let me know if that works.

 

Best, 

Ellen

Share this post


Link to post
  • 0

Posted · Report post

Also when I move the default accordions to the trash, they immediately re-appear in the main list.

Share this post


Link to post
  • 0

Posted · Report post

abielski I'm not sure what plugin is giving you that dropdown list. That's not something that is part of DMS or Accordions.

 

Let me know what the plugin is that is creating the drop down so I can reproduce the issue. I have a feeling it is something to do with the PageLines function that creates the custom post type. In the next version I am using the WordPress function which should fix the issue. But, let's make sure that is the issue.

 

Thanks,

 

Ellen

Share this post


Link to post
  • 0

Posted · Report post

Post Type Switcher

Share this post


Link to post
  • 0

Posted · Report post

That worked. Thanks

Share this post


Link to post

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