Forum Replies Created
-
In reply to: Trackbacks
OK Robin…that worked! I’ll see how it goes.
Peter
In reply to: TrackbacksOK…here is what I get for an error message:
The code snippet you are trying to save produced a fatal error on line 19:
syntax error, unexpected end of file
In reply to: TrackbacksI dont get it. I copied your code exactly as below. Is there an AND symbol getting in there in the copy function?
// Force ping_status on bbPress post types
add_filter( ‘pings_open’, ‘rew_force_ping_status’ );function rew_force_ping_status( $open, $post_id = 0 ) {
// Get the post type of the post ID
$post_type = get_post_type( $post_id );
// Default return value is what is passed in $open
$retval = $open;
// Only force for bbPress post types
switch ( $post_type ) {
case bbp_get_forum_post_type() :
case bbp_get_topic_post_type() :
case bbp_get_reply_post_type() :
$retval = false;
break;
// Allow override of the override
return apply_filters( ‘rew_force_ping_status’, $retval, $open, $post_id, $post_type );
}In reply to: TrackbacksI put in the code and got a syntax error. I loaded it in just as you wrote it. So it will not run.
Can you check on this please?
Here is what you posted:// Force ping_status on bbPress post types add_filter( 'pings_open', 'rew_force_ping_status' ); function rew_force_ping_status( $open, $post_id = 0 ) { <strong>// Get the post type of the post ID $post_type = get_post_type( $post_id ); // Default return value is what is passed in $open $retval = $open; // Only force for bbPress post types switch ( $post_type ) { case bbp_get_forum_post_type() : case bbp_get_topic_post_type() : case bbp_get_reply_post_type() : $retval = false; break; // Allow override of the override return apply_filters( 'rew_force_ping_status', $retval, $open, $post_id, $post_type ); } </strong>
In reply to: TrackbacksOK I added the plug-in. Can you give some specific instructions on how to enter the code?
Do I do this for each forum page?
TNX Robin.
Peter
In reply to: TrackbacksOK…do I put this on a forum page as HTML?
TNX