Mike_sa
Forum Replies Created
-
Forum: Plugins
In reply to: [SuperCPT] Not able to get SuperCPT too workYes it does kill the site and gives up a cannot redeclare error message.
When I added it to the end of the function, nothing happen, site carried on working
No the site is not live ??
Forum: Plugins
In reply to: [SuperCPT] Not able to get SuperCPT too workI also deactivated and remove WCK fields… no clash there ??
Forum: Plugins
In reply to: [SuperCPT] Not able to get SuperCPT too workThats is a Yes ??
I am running wordress 3.5.1 and canvas is the latest and on my localserver (mamp) I am running 5.3.5
Forum: Plugins
In reply to: [SuperCPT] Not able to get SuperCPT too workthanks for getting back to me so quickly ??
I have tried that and still no luck.
I supposed it is a silly question but having the plugin WCK Fields would not cause any clashes ?
Forum: Plugins
In reply to: [SuperCPT] Not able to get SuperCPT too workI also created a plugin and activated it but it still does not appear ??
Forum: Plugins
In reply to: getting variable set in widget to display in .php style sheetI have added this to the php code
add_action("parse_request", array(&$this, "process_request"));
add_filter("query_vars", array(&$this, "add_wg2_query_vars"));public function add_wg2_query_vars ($qvars) {
$qvars[] = "widget_text-style-widget";return $qvars;
}public function process_request($wp) {
if (array_key_exists ("widget_text-style-widget", $wp->query_vars))
$this->query["widget_text-style-widget"] = $wp->query_vars["widget_text-style-widget"];}
Unfortunately it gives me a T_PUBLIC parse error ??
Forum: Hacks
In reply to: Meta Box does not save url input correctlyI see the code was moderate but for others having a similar issue .
In my code I was using sanatize_html_class…….. I should have been using sanatize_url
Forum: Everything else WordPress
In reply to: Call custom field values in array of custom post type postsThanks Andrew.
I have managed to sort it.Just got into a panic with the deadline looming. Luckily I managed to get it with the help of a friend ??
Below is the working example (functions names may have changed but the content of the function is all working ) :
//u19 IPT ranking tournament ads top
function rank_u19_ad_top( $echo = true ) {global $post;
// Call Sponsors of WPYS
// add call for query
$args = array(
'orderby' => 'date',
'order' => 'ASC',
'posts_per_page' => 10,
'tax_query' => array(
array(
'taxonomy' => 'rankings',
'field' => 'slug',
'terms' => 'rank-u19-ipt'
)
)
);
$query = new WP_Query( $args );//Test For Found Posts
if( ! $query->have_posts() )
return false;// The Loop
//must have the first output before the loop begin or it will only return the last data. Remeber to also use get_ because it is not passing the data straight to the browser like with echoing :)
$output = '';while ( $query->have_posts() ) : $query->the_post();
//Get The AD URL
$ad_url = get_post_meta( $post->ID, 'ad-url', true );$output.='<div class="add-top">';
$output .= '' . get_the_post_thumbnail( $post->ID ) . '';
$output.='</div>';endwhile;
// Reset Post Data
wp_reset_postdata();if( ! $echo )
return $output;echo $output;
}
Forum: Everything else WordPress
In reply to: Call custom field values in array of custom post type postsI should add that the custom field values are not being set on the page that the array is being displayed, they being held on each of the custom post.
The same custom field name is being used on each post….they all require ad-url to be set.
I also see in the above code , for some reason it has added some html that I do not have in my code…please ignore it ??
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Use an image for a submit buttonThanks very much Lukeyates.
I must apologize, I actually did that yesterday and completely forgot about this forum post on the topic. I should have posted my solution ??
Thanks very much for taking the time to answer my question, atleast there will be a record for other with the same issue now.