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
Hi All,
I am using StudioPress with the child theme of Crystal.
I have used Dynamic Content Gallery (http://www.studiograsshopper.ch/) on the home page on a site with the Widget that comes with it.
The site is http://paaudiovisual.co.uk/.
The post where I want the gallery is http://paaudiovisual.co.uk/tv/panaso…1-winner/4338/
One that is part of five for the gallery is http://paaudiovisual.co.uk/tv/panaso…-p46gt30/4319/
Now on another site I want to use it on a specific post with 6 images.
The bit I can not get to work is how to tell DCG to run on a post and where it will show up.
I have the code here in functions.php:-
if( is_page('4338') ) {
dynamic_content_gallery();
}
4338 is a post not a page. Does that matter. Also the 5 posts with the DGC image url entered and the settings in DCG are set to ID method and the post IDs placed in the PAge/Post ID Number box.
Cheers,
John
10:51 am
August 25, 2008
OfflineJohn,
First, let's not confuse two things (a) the selection of posts or Pages featured in the DCG and (b) where the DCG is displayed.
Starting with (b), and just to be sure that I have understood your post, you have selected ID Method and you have specified 5 post ID's in the appropriate box in the gallery Method settings, and you have manually added an image URL in the DCG metabox for each of these 5 posts. Correct?
Moving on to (a): Ok, the conditional code you posted looks OK to me, but since you are using genesis, you must convert your code to a function and hook it to an appropriate Genesis hook. Please note that you cannot display the DCG within the Loop. Therefore, the Genesis hook used must be outside the Loop. The Studiopress dev pages should be able to guide you on which hook to use.
Hope this helps.
Hi Adew,
Sorry about that I was to much in a hurry.
I have all the images in the posts as image URL. I have added the code to the document hooks for before, then after then title. In each case nothing changed. I have the image id in the Page/Post ID numbers and used custom Image order. Plus a default image.
There seems to be still another change required?
Cheers,
John
7:53 am
August 25, 2008
OfflineJohn,
I think the before and after title hooks are within the Loop – you can't use those. Try using genesis before loop (it's in the Loop section of Simple Hooks, if that's what you are using). Please note – you can't display the DCG within the body of a post.
Hi Ade,
Thanks, I knew there was something else because the images had no information about where in the post they would go.
So, where can I find out how to get it to appear on the top right of the post (4338)?
Is it somewhere in this http://www.studiograsshopper.ch/dynamic-content-ga…..on-guide/?
Or where?
Cheers,
John
3:36 pm
August 25, 2008
OfflineJohn,
Did you try the hook I mentioned? Genesis before loop.
Hi Ade,
Yes, it i in Loop Hooks – genesis_before_loop Hook.
This code:-
And Execute PHP ticked.
Now you said "Please note – you can't display the DCG within the body of a post.".
That makes sense because there is no place where I have said where on the post I want the Gallery to be.
I use Templates? Maybe edit one?
THe post appears with no DCG.
So what next?
Cheers,
John
3:29 pm
August 25, 2008
OfflineJohn,
Can you post the code you are using in Simple Hooks?
Hi Ade,
This is the post
http://paaudiovisual.co.uk/tv/panasonic-what-hi-fi…..nner/4338/
Cheers,
John
12:06 pm
August 25, 2008
OfflineJohn,
Your code isn't displaying.
Copy your code into the reply, then highlight it and click the code button in the reply box toolbar.
Thanks.
5:29 pm
August 25, 2008
OfflineYes, I'm here, John. This is a free support forum – so I answer when I can…
Your code looks fine. The only way to get this resolved is for me to login to your admin and check all your settings. If you're happy to do that, please send me an admin login and password.
Hi Ade,
Changing it to
dynamic_content_gallery();
} ?>
Gets it further but still not there. The code loads but they are on not all in one place.
See link
http://paaudiovisual.co.uk/tv/panasonic-what-hi-fi…..nner/4338/
Plus there are two instances of every image.
Logon at [Details removed by Admin. Never post login details on a public site.]
Cheers,
John
5:43 pm
August 25, 2008
OfflineOk, John, I'll take a look this evening.
1:10 am
August 25, 2008
OfflineJohn,
DCG is working now.
DCG Settings > Load Scripts wasn't set up correctly. "4338" is a POST not a PAGE, so entering this page number in the load scripts results in no scripts being loaded as page 4338 doesn't exist. To fix this, I've changed the Load Scripts options to "Other". Bear in mind that this isn't ideal as it means that the DCG's scripts are loaded for every page on your site… You are also more likely to get javascript conflicts with other plugins, too.
My advice is not to use the DCG within a post like this as it's designed to be used on the home page, to entice your readers to read your articles.
Most Users Ever Online: 28
Currently Online: theonsale, nloronacele
10 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
johnbroome: 13
sjpeaches: 12
speedyp: 12
CherylMcL: 10
littlemerry: 8
lsnoei: 8
Member Stats:
Guest Posters: 770
Members: 1297
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 7
Topics: 978
Posts: 4293
Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi
Moderators:
Administrators: Ade (2490)
Log In
Register
Home


Dynamic Content Gallery: Have you read the
