Calling Magic fields
-
I have set up a custom wordpress page from an old website where some pages need to be CMS. It displays the html perfectly. I have followed the loop perfect
Now that I am trying to call the custom field where it needs to be editable it does not display the text of the field.I have placed
<?php echo get(‘giumarra-head’); ?>
between h2 tags but it is not calling the field.I am only on the first field that I need to call, please see below:
<?php // calling the header.php get_header(); // action hook for placing content above #container //thematic_abovecontainer(); ?> <!-- Beginning of left content --> <div class="lft-cont"> <div class="head"> <div class="icon-head"> <img src="wp-content/themes/images/icons/tree-home-lft.gif" alt=""></div> <div class="h1-tag"> <h1> News Flash</h1> </div> <!-- end of head --> </div> <div class="line-social"></div> <div class="text-class"> <div class="news-pic"> <img src="wp-content/themes/images/news/farmer-grapes.jpg" alt=""></div> <div class="news-txt"> <h2><?php echo get(‘giumarra-head’); ?></h2> <p class="social-txt-2">TopFruit is proud to announce that it has been appointed by Grapa Ltd as the exclusive territorial agent of the ARRA varieties within South Africa and Namibia. A fifteen year long programme of careful grape variety selection and breeding by the Giumarra family in California has reached its commercial availability stage with the release of these varieties.</p> <p class="social-txt-2"><a href="pdfs/GIUMARRA.pdf" title="Giumarra Breeding Programme" target="_blank"><span class="social-txt-2">Read more</span></a></p> </div> <div class="clear"></div> <div class="line-social"></div> <!-- end of text-class --> </div> <div class="text-class"> <div class="news-pic"> <img src="wp-content/themes/images/shareholder-companies/apple-africa.jpg" alt=""></div> <div class="news-txt"> <h2>Pink Lady? News (July 2010)</h2> <p class="social-txt-2">The 2010 South African Pink Lady? season has got off to a good start. There was a concern that the exceptionally hot and dry weather leading up to the harvest, was going to affect colour adversely. As it turned out, some cold nights did come to our rescue and with the judicious use of retain in some instances, a really “nice” crop has been produced.</p> <p class="social-txt-2"><a href="pdfs/Pink Lady newsletter.pdf" title="Pink Lady newsletter" target="_blank"><span class="social-txt-2">Read more</span></a></p> </div> <div class="clear"></div> <div class="line-social"></div> <!-- end of text-class --> </div> <div class="text-class"> <div class="news-pic"> <img src="wp-content/themes/images/news/people-shot.jpg" alt=""></div> <div class="news-txt"> <h2>KIKU? Kicks Off (May 2010)</h2> <p class="social-txt-2">A breath of fresh air has blown into the South African apple world with the establishment of the South African KIKU? range. KIKU? partners in the southern and northern hemisphere will ensure that only apples conforming to specific internal and external quality standards will be packed and promoted under the trademark.</p> <p class="social-txt-2"><a href="pdfs/Kiku Article.jpg" title="KIKU Kicks off" target="_blank"><span class="social-txt-2">Read more</span></a></p> </div> <!-- end of text-class --> </div> <!-- end of lft-content --> </div> <!-- Beginning of rt-content --> <div class="rt-cont-news"> <div class="side-bar-nav"> <p class="side-b-nav">Click for more information</p> <div class="link-side-nav"> <div class="icon-side-b"> <img src="wp-content/themes/images/icons/apple.gif" alt="varieties"> </div> <div class="text-side-b"> <strong><a href="varieties.php">Varieties</a></strong></div> <!-- end of link-side-nav --> </div> <div class="link-side-nav"> <div class="icon-side-b"> <img src="wp-content/themes/images/icons/flower.gif" alt="varieties"> </div> <div class="text-side-b"> <strong><a href="news.php">News Flash</a></strong></div> <!-- end of link-side-nav --> </div> <div class="link-side-nav"> <div class="icon-side-b"> <img src="wp-content/themes/images/icons/leaf.gif" alt="varieties"> </div> <div class="text-side-b"> <strong><a href="healthier-enviroment.php">Environment</a></strong></div> <!-- end of link-side-nav --> </div> <div id="clear"></div> <!-- end of sidebar nav --> </div> <div class="new-rt-txt"> <div class="head-rt-news-txt"><h2>Top Stories</h2></div> <a href="social-responsibility.php" title="Vegetable garden and soup kitchen"> <div class="news-rt-link">Vegetable garden and <br>soup kitchen (June 2010) </div> <div class="news-rt-link-grey">Click for more info</div> </a> <a href="pdfs/Table Grape Newsletter Mei 2010.pdf" Title="Table Grape newsletter" target="_blank"> <div class="news-rt-link">Table grape newsletter<br> (May 2010) </div> <div class="news-rt-link-grey">Click for more info</div> </a> <a href="pdfs/Ironman 2010.pdf" title="Pink Lady Iron Man athletes" target="_blank"> <div class="news-rt-link">Pink Lady? sponsors <br>Iron Man athletes (April 2010)</div> <div class="news-rt-link-grey">Click for more info</div> </a> <a href="pdfs/EarlySweet-4b Article Feb 2010.jpg" title="Eraly Sweet TM - the table grape on everyone's lips" target="_blank"> <div class="news-rt-link">Early Sweet TM – the table<br>grape on everyone’s lips <br>(February 2010) </div> <div class="news-rt-link-grey">Click for more info</div> </a> <a href="pdfs/Angels walking.pdf" title="Angels Walking(TM)" target="_blank"> <div class="news-rt-link">Pink Lady(R) joins Angels <br>Walking(TM) in the fight <br>against breast cancer! <br>(November 2009)</div> <div class="news-rt-link-grey">Click for more info</div> </a> <a href="social-responsibility.php" title="Streilization project"> <div class="news-rt-link">Sterilization project<br> (August 2009) </div> <div class="news-rt-link-grey">Click for more info</div> </a> <!-- end of news-rt-txt --> </div> <!-- end of rt-cont --> </div> <!-- end of content wrap --> </div> <div id="clear"></div> <div class="line"></div> <!-- end of wrapper --> </div> <?php // calling the widget area 'page-top' // get_sidebar('page-top'); the_post(); ?> <div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>"> <?php // creating the post header // thematic_postheader(); ?> <div class="entry-content"> <?php the_content(); wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number'); edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?> </div> </div><!-- .post --> <?php if ( get_post_custom_values('comments') ) //thematic_comments_template(); // Add a key/value of "comments" to enable comments on pages! // calling the widget area 'page-bottom' //get_sidebar('page-bottom'); ?> </div><!-- #content --> </div><!-- #container --> <?php // action hook for placing content below #container // thematic_belowcontainer(); // calling the standard sidebar // thematic_sidebar(); // calling footer.php get_footer(); ?>
Can anyone see what I have done wrong. I am new to using WordPress 3.01
- The topic ‘Calling Magic fields’ is closed to new replies.