buddhistwhatson 0 Report post Posted May 23, 2011 Hi; I'm trying to get the Magic Fields plugin to work. The author says to place this code echo get('services'); in the single.php file. I saw some advice on your site to put such code in template.postloop.php.So i copied those files to platformbase, and modified each alternatively. There was no output from the plugin on my post. Single.php is empty, and i dont know if i need to end the php code, and the postloop has a lot of code, I tried to place it in different parts of the code with no result to the post page in question.. links: http://magicfields.org/getting-started/ my site www dot buddhistwhatson dot com please advise. Thank you Share this post Link to post Share on other sites
cmunns 16 Report post Posted May 23, 2011 You would have to add to the template.postloop.php file...what portions did you try? On the single page you want it after the title? Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted May 24, 2011 Yes, single page after title. I don't really have any idea of the correct place to put that code in the the template.postloop.php file. Can you please tell me? thanks Share this post Link to post Share on other sites
catrina 103 Report post Posted May 24, 2011 Try placing it after this code: ` <?php the_post_thumbnail('thumbnail');?> Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted May 24, 2011 Hi, Thanks for your response. I tried that using. ----------------------- <?php if(!is_page()):?> <div class="post-meta fix"> <?php if(pagelines_show_thumb( get_the_ID() )): // Thumbnails ?> <div class="post-thumb" style="margin-right:-<?php echo $thumb_space;?>px"> " rel="bookmark" title="<?php _e('Permanent Link To', 'pagelines');?> <?php the_title_attribute();?>"> <?php the_post_thumbnail('thumbnail');?> </div> <?php endif; ?> echo get('services'); ----------------------------- also replaced it with this. <?php echo get('services'); ?> ----------------------------- (lines not in code) The post edit screen allows me to enter the magic fields data and i made the changes, but no luck. What else can i try??? thanks Share this post Link to post Share on other sites
cmunns 16 Report post Posted May 24, 2011 Check to see if it's on your main blog page as well as the single page. Also, you have the actual post type with sample text right? sorry, have to ask.. Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted May 25, 2011 Hi, i dont think i have a main blog page, as i have a static home page. No problem with your question - - yes, in the post edit page i have filled in 1 of the magic fields,and published the page. So, the plugin is installed, - i can see the plugin fields on the post edit page,add data and save. - I made a copy of the template.postloop.php file,added the code as specified, and put it in platform base. - To view the post - i published a new post but same problem. please see images. Thanks Share this post Link to post Share on other sites
cmunns 16 Report post Posted May 25, 2011 Try putting after this line: ` <?php if(pagelines_show_content( get_the_ID() )): // Post and Page Content ?> ` if you want it on the single post pages. Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted May 26, 2011 Hi i did that, and also no result. My template.postloop.php file is definitely in platform base. I am definitely adding field data to post That post edit can recognize the plugin. What can i try next? Thanks Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted May 26, 2011 do you want access to the site? can i email you the details? thanks Share this post Link to post Share on other sites
cmunns 16 Report post Posted May 26, 2011 Try to echo a simple string for testing purposes... `<?php echo 'This is a test!!!';?>` If that works then something is wrong with your template tag for the magic fields. Share this post Link to post Share on other sites
buddhistwhatson 0 Report post Posted June 8, 2011 Thanks for you advice. It is working now. I had thought that "services" was just a general call to show all of my new fields, not a specific field called "services". I didn't have a field by that name. Please excuse my lack of understanding in this matter Share this post Link to post Share on other sites
marmaristasarim 0 Report post Posted July 18, 2011 Hello I have added the php code from magic fields so that my fields show up after the line <?php if(pagelines_show_content( get_the_ID() )): // Post and Page Content ?> in the template.postloop.php file. Works great. Everything shows up on the frontend. However the fields are also showing up on my page templates as well (highlight, features, etc). I would like the fields to ONLY show up on the posts linked to specific categories, and not the template pages. I am not a programmer so I wouldn't know how to edit to make it like this. Does anyone have any suggestions as to where I should put my codes from magic fields or what code(s) I should put where in the template.postloop.php file? Thank you in advance for your assistance. Share this post Link to post Share on other sites
marmaristasarim 0 Report post Posted July 20, 2011 Problem solved thank you Catrina! Share this post Link to post Share on other sites