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.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
One Category / Custom Post Type Problems
December 1, 2010
9:31 pm
ronan
Guest

DCG Version: 3.3.4
Wordpress: Version 3.0.2

Custom Post Type UI: Version 0.6.2

Hi,

I have a blog and a custom post type which is called Case Studies. I

Very simply I was using the "One Category" gallery method, to pull posts from both using the same category but it will only display posts from the blog and not my custom post type posts. I was hoping to be able to pull items from both.

It works fine if I use the "Custom Post Type" gallery method, but then I can't pull from the blog as well.

Any ideas are appreciated.

Ronan

PS. It really is an awesome plugin! Cool

December 1, 2010
11:15 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Glad you like the plugin. Smile

Currently, you can't mix normal posts and custom post type posts – even if they share the same taxonomy. This is a limitation of the way WP_Query works.

The good news is that WP 3.1 will allow more flexibilty in constructing queries so, hopefully, what you want to do should be possible in future.

In the meantime, your only option is to use the ID Method and reference each post (normal and custom type) by ID number.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
February 22, 2011
4:43 am
hzp
Guest

which works perfectly, EXCEPT….. the DCG metabox doesn't get added to custom post types unless you elect Custom Post Type method under gallery methods, instead of ID method. Suggestions? i'd prefer to use ID method so I can utilize pages, posts and CPT's. Can I manually add the DCG metabox via functions?

February 22, 2011
6:47 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Yes, you're right, it doesn't work as expected.

I'll issue an update to fix this. Thanks for posting!

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: nloronacele
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)