mainstay
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Forms] Form Email Time Offset (UTC)The Google Spreadsheet is correct, but the email notification from the plugin, the one that starts
FYI –
A form was submitted on your web site.
? Form: Repair Form
? URL: #
? Responses: N/A
? Date: 2014-12-31
? Time: 07:45 << this is 8 hours offset from that set in WP General Settingshey – that’s pretty cool – thanks!
worked nicely =)
completely agree – and looking forward to the next update!
I also would like to either
a) change the from (currently [email protected]) email address to something I set, or
b) have the person sending the link provide their own email address.
All of the people I’ve shared links from my own site say the received email ends up in Junk Mail.
Forum: Plugins
In reply to: [WP Category Sticky Posts] Not working in 3.5 with network modeAgreed… in 3.5 this caused my Visual Editor to malfunction (couldn’t edit permalinks, add links with the Editor, or [nicely] add the featured image.
Tracked problem to this plugin (i.e., the “Use Google Library” fix did not work for me).
thanks to all of you… this is now working very well!
I have custom fields inside my pages which allow for custom banners (top_image) + I wanted my news and other categories to have custom banners (using category custom fields).
For anyone who may be interested, this is how my final code looks:
<?php $Header_Image = get_post_meta($post->ID, 'top_image', true) ?> <?php $cat_ID = get_query_var('cat'); $url = categoryCustomFields_GetCategoryCustomField($cat_ID, 'top_image'); $url = explode('@',$url[0]->field_value); $url = $url[0]; ?> <?php if(is_page() && $Header_Image !=NULL || is_single() && $Header_Image !=NULL) { ?> <h1 class="category-image"><img src="<?php echo get_post_meta($post->ID, 'top_image', true);?>" /></h1> <?php } elseif ($url!=NULL) { ?> <h1 class="category-image"><img src="<?php echo $url; ?>" /></h1> <?php } else { ?> //there is nothing specified so just treat it like you normally would
Forum: Plugins
In reply to: [IQ Testimonials] [Plugin: IQ Testimonials] php code instead of shortcodeLike the original poster I would like to add this straight to the PHP… and:
<?php echo do_shortcode("[iq-testimonials-page id='1']") ?>
works very well.
How would I make this randomly select a quote?
Any help would be greatly appreciated!
some really useful information here… thanks all!
I have a text value assigned to my categories (which is actually a full path to an image file, a different image per category).
I am trying to pull that image in my php and can’t seem to find the right coding.
I have
<?php $my_categories = get_the_category(); $my_category_id = $my_categories[0]->term_id; ?> <?php $custom_field = categoryCustomFields_GetCategoryCustomField($my_category_id, 'top_image'); ?> <h1 class="category-image"><img src="<?php echo $custom_field[0]->field_value;?>" /></h1>
Which works to display ONE of the images for all my categories.
I don’t know how to pull a different image for each category…
Some sort of an if statement with an array ?
Any thoughts?
I see others have done exactly this (migueleste).
I would LOVE to know specifically how you do this… ANY HELP?
Thanks!
–Matthew
Forum: Plugins
In reply to: [Custom Field Template] [Plugin: Custom Field Template] Simple IF THENso this CANNOT be done simply?
A NO it cannot be done without editing your templates and functions would be OK.
or a YES, and here is some reading material that may help
would all be appreciated…
Just something to kick me down the right path.
Anyone?