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.
Topic RSS
closed
5:07 pm
Hello,
I was using featured content gallery (FCG) before and since it is conflicting with other plugins I want to use DCG now.
since I have a lot of posts which already using WP custom field as this: "articleimg"/"theImageURL.ext" I wonder, how I could use this existing one in DCG now.
I don't want to go to each post and copy/paste the URL in the DCG sideboard.
Is there a way to accomplish that?
I have seen one post here in the forum which I don't understand or if it would help in my case:
here it is
and here is the answer which was postet from Ade:
For forwards compatibility with the DCG, the best option is to write some code to transfer (or copy) all your Magic Fields image URLs to the DCG _dfcg-image postmeta field.
Alternatively, you will have to hack the DCG. If you're not using the latest version, upgrade to 3.3.3 (latest). Then find this in dynamic-content-gallery-plugin/includes/dfcg-gallery-core.php (line 513):
global $dfcg_postmeta_upgrade;
if( $dfcg_postmeta_upgrade['upgraded'] == 'completed' ) {
$postmeta['desc'] = '_dfcg-desc';
$postmeta['image'] = '_dfcg-image';
$postmeta['exclude'] = '_dfcg-exclude';
$postmeta['link'] = '_dfcg-link';
$postmeta['link-window'] = '_dfcg-link-window';
} else {
$postmeta['desc'] = 'dfcg-desc';
$postmeta['image'] = 'dfcg-image';
$postmeta['exclude'] = 'dfcg-exclude';
$postmeta['link'] = 'dfcg-link';
}
return $postmeta;
}
If this is right for my problem, where must I change what?
Thank you very much
Tom
5:35 pm
OK, sorry dumb me.
I solved it – just for others:
replace _dfcg-image and dfcg-image with the custom field name and it works
repeat with the other fields if tey already there.
after plugin update, that has to be repeated as well.
But I have to say, it was worth the effort because FCG is really conflicting with many other plugins.
With DCG this can be resolved using the jquery as java script options because mith mootools it is just the same.
In my case the trouble was because I needed also the Magic Gallery Plugin
closed
Tom
Most Users Ever Online: 28
Currently Online: theonsale
6 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: 4303
Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert
Moderators:
Administrators: Ade (2497)
Log In
Register
Home

Offline
Dynamic Content Gallery: Have you read the 