Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

DCG with Custom Post Types

closed
UserPost

4:45 am
August 10, 2010


davecrow

Guest

1

I'm running WordPress 3.0 to build a site for the performing arts center at a local community college (site hasn't launched yet, so I can't provide a URL). I'm using DCG for a featured events slider on the homepage.

I'm using the new Events Calendar Pro plugin to run an events calendar. The plugin uses a custom post type for events which is quite handy. But the DCG image metabox doesn't load when creating an event. Is there a way to add posts from custom post types to the DCG?

Thanks!

9:11 pm
August 11, 2010


Ade

Admin

posts 2384

2

Hi,

Currently, the answer is no. Good idea for a future version though – thanks for reminding me. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

9:23 pm
August 11, 2010


davecrow

Guest

3

I figured that was the case, but thanks for confirming. I think I can work around it by using the Page Links to plugin. It's a hacky solution but it'll work for now.

Thanks!

8:02 pm
August 12, 2010


Ade

Admin

posts 2384

4

I'll definitely be looking at ways of populating the DCG from Custom Post types.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

11:10 pm
November 9, 2010


burke

Guest

5

Post edited 12:18 am – November 10, 2010 by burke


I have figured out how to add the meta box to a custom post type. In dfcg_admin_metaboxes.php you just add this line of code at line 42 (if you are using the category method:

add_meta_box( DFCG_FILE_HOOK . '_box', __( 'Dynamic Content Gallery Metabox', DFCG_DOMAIN ), 'dfcg_meta_box', 'your-custom-post-type', 'side', 'low' );

But the gallery still does not count the custom post type post in the respective category.

Within dfcg_gallery_constructors.php I have tried to alter the query, but to no avail. In fact, hacking up the query code seemed to have no effect at all – I expected it to crash the site, but the gallery just kept putting out the 'post' post types.

Please help if you have any suggestions.

11:53 pm
November 9, 2010


Ade

Admin

posts 2384

6

Are you using version 3.3.3?

Providing you select the Custom Post Type gallery method in the DCG Settings page, and have selected a Custom Post type in this gallery method's settings, the DCG Metabox will be available to you in the Post Editor for the relevant Custom Post Type.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

12:19 am
November 10, 2010


burke

Guest

7

Thanks for the quick reply?

However, what if I want to use a combination of "posts" and custom post types?