Support

Account

Forum Replies Created

  • Just upgraded the new version and have the same issue.
    Was working on a post and they were not there. Saw the update, updated, went back to post and all these fields are showing. AAAAAHHH

    WP version 4.9.8
    Advanced Custom Fields PRO 5.7.7

  • AHHH. I see, I can create a field with that data and then it should work… OOOH, I like it,

  • here is the funny part. i entered that code in text view and previewed it, it looked good, I added more, saved as draft, it looked good. the moment I switched to visual view and went back, the code was stripped.

    I now see what you mean, so no, I do not have anything that made it stay.

    so it does not work either way, I guess it will be a hard coded templated for this.

  • Sorry, sorry, long day, I read your question but blanked out.

    ACF version is: 4.4.11

  • interesting. thanks for the help. I do not know what I would have to do that.

    Back to the first thing you sent, how do I install the wp-schema-org-in-editor.php file onto my site? Where, what directory, and is there any other coding like in the functions file?

  • thank you for the reply and insight, what makes your statement confusing is that when I enter the data into the default WP editor, the code is not stripped.

    When i enter it into the advanced custom field does it remove it.

  • @James thanks for the reply and input.

    As I started putting in the code to show you I realized that one part of it WAS working, the part I added the , get_option(‘page_for_posts’) and not the part I did not add it too.

    So with your reply, it made me open my sad eyes and mind.

    Apologies for your time, but appreciate the kick in the pants.

  • Sorry so late, and so long a code, hope this is what you wanted…

    I took out the code you recommended as it was not working…

    get_header(); ?>
    
    <div id="main">
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="gf-slider"> 
    <!-- slider -->
    	<ul class="slides">
       	<li><a href="http://localhost/wordpress-4.1.1/wordpress/byers-solar/"><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/04/slider-image-4.png" alt="SunPower Solar" title="SunPower Solar"></a>
    			<p class="flex-caption">SunPower Solar</p>
    		</li>
    		<li><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/04/slider-image-3.png" alt="LeafGuard Gutters. No Leaks. No Glogs. No Cleaning. That's Byers!" title="LeafGuard Gutters.  No Leaks.  No Glogs.  No Cleaning.  That's Byers!" />
          	<p class="flex-caption">LeafGuard Gutters. &nbsp;No Leaks. &nbsp;No Glogs. &nbsp;No Cleaning. &nbsp;That's Byers!</p>
          </li>
          <li><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/04/slider-image-2.png" alt="Roofing Contractor Since 1987" title="Roofing Contractor Since 1987" />
          	<p class="flex-caption">Roofing Since 1987</p>
          </li>
          <li><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/04/slider-image-1.png" alt="Solatube Daylighting Systems | The smarter Alternative to Skylights" title="Solatube Daylighting Systems | The smarter Alternative to Skylights" />
          	<p class="flex-caption">Solatube Daylighting Systems | The smarter Alternative to Skylights</p>
          </li>
    	</ul>
    </div>
    <div id="header-one-bar-full"><h1>The Best Investment for your home and Family. <span>That's Byers</span></h1></div>
    <div id="header-one-bar-800"><h1>The Best Investment for your home and Family.<br /><span>That's Byers</span></h1></div>
    
    <div id="the-content">
    	<div id="the-content-text">
    		<h3>Why Byers?</h3>
    		<p>For three generations &mdash; and counting, the Byers family has been in the business of keeping your family safe, warm, and dry with the highest qaulity gutters, roofing, and&hellip; people.</p>
    		<p>Our promise to you is that we are &ldquo;<strong>The Best Investment For Your Home and Family. <span>Guaranteed</span>.</strong>&rdquo;</p>
    		<p>Every new product and service we provide must meet our own time-tested set of standards before we will stake our family's namon it.</p>
    		<p>Is it industry leading technology?<br />Does it last a lifetime?<br />Will our staff continue to be the best trained staff?<br />Can we guarantee our clients' satisfaction everytime?</p>
    		<p>When we answer YES to these questions and more, it will make the cut, so you can rest assured that it truly is the best investment for your home and family.</p>
    	</div>
    	<div id="the-content-images">
    		<div class="brand-logos-full"><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/themes/byersenterprises/seals/ThatsByers-brand-logos.jpg" alt="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpowe, Angies List" width="100%" title="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpower, Angies List" /></div>
    		<div class="brand-logos-1024"><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/themes/byersenterprises/seals/ThatsByers-brand-logos-b.jpg" alt="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpowe, Angies List" width="100%" title="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpower, Angies List" /></div>
    		<div class="brand-logos-800"><img src="http://localhost/wordpress-4.1.1/wordpress/wp-content/themes/byersenterprises/seals/ThatsByers-brand-logos.jpg" alt="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpowe, Angies List" width="100%" title="Brand Logos | Good Housekeeping | GAF | Guild Quality | Owens Corning, LeafGuard, Solatube, Sunpower, Angies List" /></div>
    	</div>
    	
    	<div class="clear open"></div>
    	
    	<?php
    		$leaf = "leaf";
    		$roof = "roof";
    		$solar = "solar";
    		$solatube = "solatube";
    		$OfferBox1Product = get_field('offer_box_1_product');
    		$OfferBox2Product = get_field('offer_box_2_product');
    		$OfferBox3Product = get_field('offer_box_3_product');
    		{if ($OfferBox1Product == $leaf) {$OfferBox1Color = "30,134,72"; $OfferBox1Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-leafguard-320x122.png"; $OfferBox1ImageDescription = "LeafGuard Gutters - Sacramento, Bay Area";}
    		elseif ($OfferBox1Product == $roof) {$OfferBox1Color = "25,130,197"; $OfferBox1Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-roofing-320x122.png"; $OfferBox1ImageDescription = "Roofing Contractor - Sacramento, Bay Area, Northern California, GAF, Owens Corning";}
    		elseif ($OfferBox1Product == $solar) {$OfferBox1Color = "246,191,22"; $OfferBox1Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solar-320x122.png"; $OfferBox1ImageDescription = "SunPower Solar - Sacramento, Bay Area, Northern California, Solar Power";}
    		elseif ($OfferBox1Product == $solatube) {$OfferBox1Color = "25,130,197"; $OfferBox1Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solatube-320x122.png"; $OfferBox1ImageDescription = "Solatube Daylighting Systems better than Skylights - Sacramento, Bay Area, Northern California";}}
    		{if ($OfferBox2Product == $leaf) {$OfferBox2Color = "30,134,72"; $OfferBox2Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-leafguard-320x122.png"; $OfferBox2ImageDescription = "LeafGuard Gutters - Sacramento, Bay Area";}
    		elseif ($OfferBox2Product == $roof) {$OfferBox2Color = "25,130,197"; $OfferBox2Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-roofing-320x122.png"; $OfferBox2ImageDescription = "Roofing Contractor - Sacramento, Bay Area, Northern California, GAF, Owens Corning";}
    		elseif ($OfferBox2Product == $solar) {$OfferBox2Color = "246,191,22"; $OfferBox2Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solar-320x122.png"; $OfferBox2ImageDescription = "SunPower Solar - Sacramento, Bay Area, Northern California, Solar Power";}
    		elseif ($OfferBox2Product == $solatube) {$OfferBox2Color = "25,130,197"; $OfferBox2Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solatube-320x122.png"; $OfferBox2ImageDescription = "Solatube Daylighting Systems better than Skylights - Sacramento, Bay Area, Northern California";}}
    		{if ($OfferBox3Product == $leaf) {$OfferBox3Color = "30,134,72"; $OfferBox3Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-leafguard-320x122.png"; $OfferBox3ImageDescription = "LeafGuard Gutters - Sacramento, Bay Area";}
    		elseif ($OfferBox3Product == $roof) {$OfferBox3Color = "25,130,197"; $OfferBox3Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-roofing-320x122.png"; $OfferBox3ImageDescription = "Roofing Contractor - Sacramento, Bay Area, Northern California, GAF, Owens Corning";}
    		elseif ($OfferBox3Product == $solar) {$OfferBox3Color = "246,191,22"; $OfferBox3Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solar-320x122.png"; $OfferBox3ImageDescription = "SunPower Solar - Sacramento, Bay Area, Northern California, Solar Power";}
    		elseif ($OfferBox3Product == $solatube) {$OfferBox3Color = "25,130,197"; $OfferBox3Image = "http://localhost/wordpress-4.1.1/wordpress/wp-content/uploads/2015/06/byers-offer-solatube-320x122.png"; $OfferBox3ImageDescription = "Solatube Daylighting Systems better than Skylights - Sacramento, Bay Area, Northern California";}}
    	?>
    	
    	
    	<!--
    	==		OFFERS (3 BOXES)
    
    	-->
    	<div id="offers">
    		<h3>Latest Offers</h3>
    		<a href="<?php the_field('offer_box_1_link') ?>"><div class="offer" style="background-color: rgba( <?php echo $OfferBox1Color ?>, 1.00);">
    			<?php the_field('offer_box_1_content'); ?>
    			<img class="offer-image" src="<?php echo $OfferBox1Image ?>" alt="<?php echo $OfferBox1ImageDescription; ?>" title="<?php echo $OfferBox1ImageDescription; ?>" />
    		</div></a>
    		<div class="offer-space">&nbsp;</div>
    		<a href="<?php the_field('offer_box_2_link') ?>"><div class="offer" style="background-color: rgba(<?php echo $OfferBox2Color ?>, 1.00);">
    			<?php the_field('offer_box_2_content'); ?>
    			<img class="offer-image" src="<?php echo $OfferBox2Image ?>" alt="<?php echo $OfferBox2ImageDescription; ?>" title="<?php echo $OfferBox2ImageDescription; ?>" />
    		</div></a>
    		<div class="offer-space  offer-space-third">&nbsp;</div>
    		<a href="<?php the_field('offer_box_3_link') ?>"><div class="offer" style="background-color: rgba(<?php echo $OfferBox3Color ?>, 1.00);">
    			<?php the_field('offer_box_3_content'); ?>
    			<img class="offer-image" src="<?php echo $OfferBox3Image ?>" alt="<?php echo $OfferBox3ImageDescription; ?>" title="<?php echo $OfferBox3ImageDescription; ?>" />
    		</div></a>
    	</div>
    	
    	<div class="open"></div>
    	
    	
    	<!--
    	==		CLIENT TESTIMONIALS
    
    	-->
    	<div id="client-testimonials">
    		<div class="client-testimonial-half">
    			<div class="the-testimonial"><?php the_field('client_1_testimonial'); ?></div>
    			<p class="client-info"><span class="client"><?php the_field('client_1_name'); ?></span><br /><?php the_field('client_1_city'); ?><br /><?php the_field('client_1_date'); ?></p>
    			<img style="display: <?php the_field('display_client_1_image');?>;" src="<?php the_field('client_1_image'); ?>" alt="<?php the_field('client_1_image_description'); ?>" title="<?php the_field('client_1_image_description'); ?>" />
    		</div>
    		<div class="client-testimonial-half half-right">
    			<div class="the-testimonial"><?php the_field('client_2_testimonial'); ?></div>
    			<p class="client-info"><span class="client"><?php the_field('client_2_name'); ?></span><br /><?php the_field('client_2_city'); ?><br /><?php the_field('client_2_date'); ?></p>
    			<img style="display: <?php the_field('display_client_2_image');?>;" src="<?php the_field('client_2_image'); ?>" alt="<?php the_field('client_2_image_description'); ?>" title="<?php the_field('client_2_image_description'); ?>" />
    		</div>
    	</div>
    
    	<div class="clear"></div>
    </div>
    <?php the_content(__('(more...)')); ?>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, we could not find the post you are looking for.'); ?></p>
    <?php endif; ?>
    </div>
    
    </div>
    
    <div id="delimiter"></div>
    
    <?php get_footer(); ?>
  • thanks for the reply however

    after trying this:

    <?php

    $image = get_field(‘client_2_image’);

    if( !empty($image) ): ?>
    ” alt=”<?php echo $image[‘alt’]; ?>” title=”working”/>

    <?php endif; ?>

    I get the following error…

    <img src="<br />
    <b>Warning</b>:  Illegal string offset 'url' in <b>C:\xampp\htdocs\wordpress-4.1.1\wordpress\wp-content\themes\byersenterprises\page.php</b> on line <b>161</b><br />
    h" alt="<br />
    <b>Warning</b>:  Illegal string offset 'alt' in <b>C:\xampp\htdocs\wordpress-4.1.1\wordpress\wp-content\themes\byersenterprises\page.php</b> on line <b>161</b><br />
    h" title="working">

    it grabs the right image as I added this code to echo the info:
    <?php echo $image, the_field(‘client_2_image’) ?>

    and both are the same url, but no, alt and the url does not work.

  • OKAY, I looked even further and got more confused, the ACF field groups page states this on the right hand side:

    for version 6.1.8.1

    Advanced Custom Fields 4.1.8.1
    Changelog
    See what’s new in version 4.1.8.1

    going to the link on the page goes to here:

    Welcome to Advanced Custom Fields 4.1.8.1
    Thank you for updating to the latest version!
    ACF 4.1.8.1 is more polished and enjoyable than ever before. We hope you like it.

    What’s New Changelog
    Changelog for 4.1.8.1
    Select field: Revert choices logic – Learn more
    CSS: Revert metabox CSS – Learn more
    Core: Fixed save_post conflict with Shopp plugin – Learn more

    for version 4.4.1

    Advanced Custom Fields 4.4.1
    Changelog
    See what’s new in version 4.4.1

    and going to the link goes to here:

    Welcome to Advanced Custom Fields 4.4.1
    Thank you for updating to the latest version!
    ACF 4.4.1 is more polished and enjoyable than ever before. We hope you like it.

    What’s New Changelog

    Changelog for 4.4.1

    Taxonomy field: Added compatibility for upcoming ‘term splitting’ in WP 4.2
    Taxonomy field: Major improvement to save/load setting allowing for different values on multiple sub fields
    Core: Minor fixes and improvements

    so, it looks like the 6.1.8.1 is really 4.1.8.1 and i need to upgrade, but it does not say I need to.

Viewing 11 posts - 1 through 11 (of 11 total)