<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Tweaking WordPress: How to create a floating paragraph before your post</title> <atom:link href="http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/feed" rel="self" type="application/rss+xml" /><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post</link> <description>A blog by Prelovac Media CEO Vladimir Prelovac</description> <lastBuildDate>Tue, 14 Feb 2012 08:37:58 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Vladimir</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17725</link> <dc:creator>Vladimir</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17725</guid> <description>I think Brian&#039;s idea was well worth it and is flexible. It also shows a thought process of someone combating with a particular issue in WordPress and as such is valuable to a wide public.</description> <content:encoded><![CDATA[<p>I think Brian's idea was well worth it and is flexible. It also shows a thought process of someone combating with a particular issue in WordPress and as such is valuable to a wide public.</p> ]]></content:encoded> </item> <item><title>By: Wordpress Brian</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17724</link> <dc:creator>Wordpress Brian</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17724</guid> <description>Hi Adam, I think it was this plugin you mentioned that clashed.  Was unfortunate but I learned loads by doing it the manual way.</description> <content:encoded><![CDATA[<p>Hi Adam, I think it was this plugin you mentioned that clashed.  Was unfortunate but I learned loads by doing it the manual way.</p> ]]></content:encoded> </item> <item><title>By: Wordpress Brian</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17723</link> <dc:creator>Wordpress Brian</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17723</guid> <description>Hey Mac_Boy, thanks for the input.Despite my appearance on Vlad&#039;s site and the technical issues of the code above (and my fancy comment) I still have much to learn.  Your points are well made (and have sunk in for future reference) and I will eventually have to learn how to make plugins from some of these more lengthy code additions.I was actually going to download Vlad&#039;s book in Ebook format soon (I live in Chile, might take a while to arrive in the normal post).Anyway, thanks again.</description> <content:encoded><![CDATA[<p>Hey Mac_Boy, thanks for the input.</p><p>Despite my appearance on Vlad's site and the technical issues of the code above (and my fancy comment) I still have much to learn.  Your points are well made (and have sunk in for future reference) and I will eventually have to learn how to make plugins from some of these more lengthy code additions.</p><p>I was actually going to download Vlad's book in Ebook format soon (I live in Chile, might take a while to arrive in the normal post).</p><p>Anyway, thanks again.</p> ]]></content:encoded> </item> <item><title>By: Mac_Boy</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17721</link> <dc:creator>Mac_Boy</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17721</guid> <description>@WordPress_Brian thank you for the explanation. I&#039;d love to see that client&#039;s web site.Personally, I prefer using plugins because the functionality is not locked-up in a theme&#039;s functions.php file.  That allows me to change themes for looks and also for problem solving.Yes, plugins can conflict with each other and cause problems with functionality and with CSS.For custom coding, I recommend following Vladimir&#039;s book and write your own plugins instead of adding more code into functions.php  you&#039;ll also gain portability by being able to reuse those plugins for other clients.</description> <content:encoded><![CDATA[<p>@WordPress_Brian thank you for the explanation. I'd love to see that client's web site.</p><p>Personally, I prefer using plugins because the functionality is not locked-up in a theme's functions.php file.  That allows me to change themes for looks and also for problem solving.</p><p>Yes, plugins can conflict with each other and cause problems with functionality and with CSS.</p><p>For custom coding, I recommend following Vladimir's book and write your own plugins instead of adding more code into functions.php  you'll also gain portability by being able to reuse those plugins for other clients.</p> ]]></content:encoded> </item> <item><title>By: Wordpress Brian</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17720</link> <dc:creator>Wordpress Brian</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17720</guid> <description>Hi everyone - and more specifically to you Mac_Boy,
Just to let you know -
I choose to go for &#039;custom fields&#039; as opposed to &#039;excerpts&#039; because this piece of code was only the beginning of a larger puzzle.
The customer had a travel website and wanted to display all-sorts of information at various points around his site - as you can image a travel company having.
By using &#039;custom-fields&#039; I was able to call on the &#039;keys&#039; and the &#039;values&#039; at a later date to make pages dynamically.
For example - if the &#039;key&#039; for this display box was &#039;forthcoming trips&#039; and he entered dates on individual pages, that means I could make him a page called &quot;All Upcoming Trips&quot; that was &#039;self building&#039; by displaying the appropriate &#039;key&#039; and &#039;value&#039; by using &#039;get_post_custom_values&#039; and &#039;get_post_custom_keys&#039;.
Please excuse my poor terminology, it was a while since I made this particular modification.
Also, I tried various plugins to get the job done, but none did exactly what I wanted and one clashed with Cforms ii and the site went down (I opted for the Cforms plugin due to all the enquiry forms on the website).  Always remember the less plugins a site has the better.
Hope this clears things up.</description> <content:encoded><![CDATA[<p>Hi everyone - and more specifically to you Mac_Boy,</p><p>Just to let you know -</p><p>I choose to go for 'custom fields' as opposed to 'excerpts' because this piece of code was only the beginning of a larger puzzle.</p><p>The customer had a travel website and wanted to display all-sorts of information at various points around his site - as you can image a travel company having.</p><p>By using 'custom-fields' I was able to call on the 'keys' and the 'values' at a later date to make pages dynamically.</p><p>For example - if the 'key' for this display box was 'forthcoming trips' and he entered dates on individual pages, that means I could make him a page called "All Upcoming Trips" that was 'self building' by displaying the appropriate 'key' and 'value' by using 'get_post_custom_values' and 'get_post_custom_keys'.</p><p>Please excuse my poor terminology, it was a while since I made this particular modification.</p><p>Also, I tried various plugins to get the job done, but none did exactly what I wanted and one clashed with Cforms ii and the site went down (I opted for the Cforms plugin due to all the enquiry forms on the website).  Always remember the less plugins a site has the better.</p><p>Hope this clears things up.</p> ]]></content:encoded> </item> <item><title>By: Vladimir</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17717</link> <dc:creator>Vladimir</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17717</guid> <description>Its eating it even with your pre tag, I&#039;ll have to check. Email me the full code please vprelovac@gmail.com</description> <content:encoded><![CDATA[<p>Its eating it even with your pre tag, I'll have to check. Email me the full code please <a
href="mailto:vprelovac@gmail.com">vprelovac@gmail.com</a></p> ]]></content:encoded> </item> <item><title>By: Adam Wood</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17716</link> <dc:creator>Adam Wood</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17716</guid> <description>it removed my code snippet... arghI used the code tag...
Do we use the pre tag?Here it is again:&lt;pre&gt;&lt;/pre&gt;And, just in case, here it is, with all the angle brackets removed.?php if ( get_meta(FloatOnOff) == on ) { ?
div class=&quot;FloatParagraph&quot;
?php meta(FloatText) ; ?
/div
?php } ?Anyway, the end resulting functionality is basically the same, but using the excellent &quot;More Fields&quot; plugin to automatically do what you spent a whole lot of time and coding doing. I guess if you&#039;re anti-plugin-clutter (or pro-hand-writing-a-lot-of-geeky-code), your way is better. But this is how I would do it (in fact, I&#039;ve used this basic tool for dozens of similar applications).</description> <content:encoded><![CDATA[<p>it removed my code snippet... argh</p><p>I used the code tag...<br
/> Do we use the pre tag?</p><p>Here it is again:</p><pre>
</pre><p>And, just in case, here it is, with all the angle brackets removed.</p><p>?php if ( get_meta(FloatOnOff) == on ) { ?<br
/> div class="FloatParagraph"<br
/> ?php meta(FloatText) ; ?<br
/> /div<br
/> ?php } ?</p><p>Anyway, the end resulting functionality is basically the same, but using the excellent "More Fields" plugin to automatically do what you spent a whole lot of time and coding doing. I guess if you're anti-plugin-clutter (or pro-hand-writing-a-lot-of-geeky-code), your way is better. But this is how I would do it (in fact, I've used this basic tool for dozens of similar applications).</p> ]]></content:encoded> </item> <item><title>By: Adam Wood</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17715</link> <dc:creator>Adam Wood</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17715</guid> <description>I would have gone with a MUCH simpler process.Using the &quot;more fields&quot; AWESOME plugin:Create a new edit box. Let&#039;s call it &quot;Floating Paragraph.&quot; We&#039;ll add two new input fields fields: A checkbox called &quot;Using Floating Paragraph?&quot; (Key: &quot;FloatOnOff&quot;) and a text area called &quot;Floating Paragraph Text&quot; (Key: &quot;FloatText&quot;).Go into the single.php template (or wherever else you want this to show up), and inside the loop, just before the code that creates the title, insert:&lt;code&gt;&lt;/code&gt;That&#039;s it. Go add some css, and spend two weeks doing something else.</description> <content:encoded><![CDATA[<p>I would have gone with a MUCH simpler process.</p><p>Using the "more fields" AWESOME plugin:</p><p>Create a new edit box. Let's call it "Floating Paragraph." We'll add two new input fields fields: A checkbox called "Using Floating Paragraph?" (Key: "FloatOnOff") and a text area called "Floating Paragraph Text" (Key: "FloatText").</p><p>Go into the single.php template (or wherever else you want this to show up), and inside the loop, just before the code that creates the title, insert:</p><p><code></p><p></code></p><p>That's it. Go add some css, and spend two weeks doing something else.</p> ]]></content:encoded> </item> <item><title>By: Mac_Boy</title><link>http://www.prelovac.com/vladimir/tweaking-wordpress-how-to-create-a-floating-paragraph-before-your-post/comment-page-1#comment-17700</link> <dc:creator>Mac_Boy</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1282#comment-17700</guid> <description>I had done a simpler method for a client by using the &#039;excerpt&#039; field for pages. A simple IF-THEN-ELSE was put into page.php  Then I used a page-excerpt plugin to get the excerpt field to show up on the create-edit page screens.Your method is quite complex in comparison. It helped me learn alternative methods!Thanks for sharing.</description> <content:encoded><![CDATA[<p>I had done a simpler method for a client by using the 'excerpt' field for pages. A simple IF-THEN-ELSE was put into page.php  Then I used a page-excerpt plugin to get the excerpt field to show up on the create-edit page screens.</p><p>Your method is quite complex in comparison. It helped me learn alternative methods!</p><p>Thanks for sharing.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.prelovac.com @ 2012-02-14 11:33:24 by W3 Total Cache -->
