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
error with Thesis
Status: fixed
December 7, 2010
12:44 am
jackfussell
Guest

I just installed and added code to use the Dynamic Content Gallery on Thesis and I got this error message…

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'featcc' was given in /home/travelj5/public_html/jackfussell/wp-includes/plugin.php on line 395

Any advice on how to fix it….
http://www.jackfussell.com

Thanks!

December 7, 2010
9:57 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

How have you added the DCG to Thesis? As a widget, or are you adding code somewhere? As I don't know how Thesis works, and this seems to be an issue with utilising Thesis, you may be better off asking this question on the Thesis forums…

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 7, 2010
2:20 pm
jackfussell
Guest

I added it as a plugin. I also added some code based on this tutorial
http://www.wolf-howl.com/blogging/visual-slider-thesis/

Jack

December 7, 2010
2:50 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Jack,

That article is very out of date and refers to an old, old, old version of the DCG.

Please post the code that you have added to Thesis.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 8, 2010
5:35 pm
jackfussell
Guest

Thanks for the info…
here is the code I added to custom functions file
//featured content
function featcc() {
if (is_home()){
global $post;
if( function_exists( 'dynamic_content_gallery' ) ) :
dynamic_content_gallery();
endif;
}
}

and
dynamic_content_gallery();

and
add_action('thesis_hook_feature_box', 'featcc');

December 8, 2010
6:16 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Jack,

This is nothing to do with plugin support – you're just not calling it correctly as required for Thesis.

This is what you need:

//featured content
function featcc() {
	if (is_home()){

		if( function_exists( 'dynamic_content_gallery' ) ) {
			dynamic_content_gallery();
		}
	}
}

add_action('thesis_hook_feature_box', 'featcc');

If I come across as grumpy, I am. You paid Thesis' authors for theme support but I end up giving you free theme support instead. Go figure…

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

Most Users Ever Online: 28

Currently Online: nloronacele
13 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)