[SOLVED] Version 3.4.2 and Featured Content Gallery
I've tried everything, Javascript set to external, PHP editing, featuring more than 2 items. I can't get the gallery to show up. Does anyone know of any alternative content sliders or can give me a step by step to make FCG work?
|
Try these changes to the FCG code:
In FCG's jd.gallery.js.php replace fadeDuration: <?=$fcg_fade_duration ?>, with fadeDuration: <?php echo $fcg_fade_duration ?>, and delay: <?=$fcg_delay ?>, with delay: <?php echo $fcg_delay ?>, and defaultTransition: '<?=$fcg_default_transaction ?>', with defaultTransition: '<?php echo $fcg_default_transaction ?>', and textShowCarousel: '<?=$fcg_button ?>', with textShowCarousel: '<?php echo $fcg_button ?>', Also, you'd have to put the PHP Code:
PHP Code:
If all this doesn't help, try replacing in FCG's gallery.php, all $post->ID with get_the_ID() |
Hello! I followed these directions, but when I load the updated index.php file suddenly my blog posts show on every page.
Advice? http://www.mercyemsdsm.com |
Is this still happening? I don't see it on your site
|
Thanks for responding. I did get it figured out. Have a great day!
|
Hi Flynn,
I am attempting to make Featured Content Gallery work. www.pauloberle.com/stltheta.org/ but i want the gallery in a php sidebar widget. Does that break the loop? Apparently its doing something bad because if I have that php widget active I can't see a sticky post that should be at the top of the homepage. Thanks, Paul |
I switched over to dynamic content gallery, had a few issues, but got it working
www.pauloberle.com/stltheta.org |
I think because I have a newer version of Featured Content Gallery, Flynn's code doesn't match up to the files that are there now. I posted about not being able to get this to work here-
http://forum.bytesforall.com/showthread.php?t=5372 I have Version 3.2.0 of the plugin, Or maybe I am just being dense. The file jd.gallery.js.php is said to be inactive, and the code doesn't look the same. It has- <?php include("../../../../wp-load.php"); $fcg_button = get_option('gallery-fcg-button') != '' ? get_option('gallery-fcg-button') : "Featured Content"; $fcg_fade_duration = get_option('gallery-fade-duration') != '' ? get_option('gallery-fade-duration') : 500; $fcg_delay = get_option('gallery-delay') != '' ? get_option('gallery-delay') : 9000; $fcg_default_transaction = get_option('gallery-default-transaction') != '' ? get_option('gallery-default-transaction') : "fade"; ?> |
I tried hard to make FCG work and eventually got frustrated. Then I tried Dynmanic Content Gallery and it worked perfectly for me, right after activation. http://www.studiograsshopper.ch/dyna...ntent-gallery/. You may want to try it and see if it does what you want. You can see it on my ATA site at www.mercyemsdsm.com.
Good luck! |
I'm trying to do the same with Dynamic Content Gallery, I've followed the setup instructions here: http://www.studiograsshopper.ch/dyna...uration-guide/ - but I can't determine where I should place the php to call the plugin - index.php? bfa_hor_pages.php? Can I not add the php to the css inserts area so that I am not hacking Flynn's theme files?
I only want the featured posts to appear on a single static page called 'portfolio' that has the ID '801' per: <?php if( is_page('801') ) { dynamic_content_gallery(); } ?> When I dropped this into the index.php, the gallery showed up, but in a weird left corner under the footer. Any help would be greatly appreciated... I'm trying to replace autoviewer on this page with dcg: http://plusplus.ca/portfolio/ BTW - it also works well in a PHP widget - but can I get a widget to appear in the body of a page somehow? (using widget logic to exclude all but the desired page) |
OK - solved - as above (first reply by Flynn in this thread), paste:
<?php if( is_page('801') ) { dynamic_content_gallery(); } ?> Directly under: 'get header' at top of index.php - and it shows up in the right place! |
All times are GMT -6. The time now is 08:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.