<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Simple PHP question for Avisio</title>
		<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio</link>
		<description>Support Forum - Topic: Simple PHP question for Avisio</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 12:05:54 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/simple-php-question-for-avisio" rel="self" type="application/rss+xml" />

		<item>
			<title>James Morrison on "Simple PHP question for Avisio"</title>
			<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio#post-17166</link>
			<pubDate>Sat, 16 Apr 2011 10:27:22 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">17166@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I'm not sure where you'e trying to display the page content, and I appreciate this is just a code snippet in your pastie link but is the code using the loop?&#60;/p&#62;
&#60;p&#62;You can't use the &#60;strong&#62;WP_Query&#60;/strong&#62; inside the loop (it just won't work...) and you must have the loop for it to display correctly (and also handle error messages), so you code should look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
		$query = new WP_Query( &#38;#39;page_id=123&#38;#39; );

		if (have_posts()) : while (have_posts()) : the_post();	

		echo &#38;#39;&#38;lt;h1 class=&#38;quot;siteheading&#38;quot;&#38;gt; &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot;&#38;gt; &#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h1&#38;gt;&#38;#39;;

		$headline = get_post_meta($post-&#38;gt;ID, &#38;quot;_headline&#38;quot;, true);
			if($headline != &#38;quot;&#38;quot;) $headline = &#38;#39;&#38;lt;h2&#38;gt;&#38;#39;.$headline.&#38;#39;&#38;lt;/h2&#38;gt;&#38;#39;;
			echo &#38;#39;&#38;lt;div class=&#38;quot;center&#38;quot;&#38;gt;&#38;#39;;
					if($headline != &#38;quot;&#38;quot;) echo &#38;#39;$headline&#38;#39;;
			echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;

		echo &#38;#39;&#38;lt;?php the_content();?&#38;gt;&#38;#39;;

		endwhile; endif;

	?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know how you get on.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>phil227 on "Simple PHP question for Avisio"</title>
			<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio#post-17105</link>
			<pubDate>Fri, 15 Apr 2011 09:55:11 +0000</pubDate>
			<dc:creator>phil227</dc:creator>
			<guid isPermaLink="false">17105@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I am a PHP idiot but after researching this, I believe I should use something like:&#60;/p&#62;
&#60;p&#62;WP_Query( 'page_id=123' );&#60;/p&#62;
&#60;p&#62;if I want to query data from the page whose page ID is #123 (it's a page, not a post).&#60;/p&#62;
&#60;p&#62;I took that function and combined it with some of the code above and I now have this:&#60;br /&#62;
&#60;a href=&#34;http://www.pastie.org/1796880&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1796880&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Again, the goal here is to get the website to display, from the page whose page ID is #123, (1) the title in h1, (2) the &#34;additional headline&#34; in h2 (the &#34;additional headline&#34; is that field whose data appears across the top of each Avisio page) and (3) the content from the page, as regular sized text.&#60;/p&#62;
&#60;p&#62;This code I wrote does NOT break my website, so for me that's major progress- but it fails to display any text at all!&#60;/p&#62;
&#60;p&#62;Can someone on the forum who knows PHP please give me a hand?  You would make my weekend if you could fix this code- you'd put me out of my misery!  Really I would so much appreciate it, I am almost done with this Avisio website I'm building!!!!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>phil227 on "Simple PHP question for Avisio"</title>
			<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio#post-17099</link>
			<pubDate>Fri, 15 Apr 2011 06:49:49 +0000</pubDate>
			<dc:creator>phil227</dc:creator>
			<guid isPermaLink="false">17099@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;There's something missing from this code.  Quick review- the code you gave me was to display a certain page's (1) title, (2) additional heading, and (3) content.  I want to dynamically generate these three pieces of content, but I want to hard wire into the PHP script the post ID of the page whose content will be delivered.  The code you gave me is here: &#60;a href=&#34;http://pastie.org/1796465&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1796465&#60;/a&#62; but I don't see where I'm supposed to insert the post ID!!!&#60;/p&#62;
&#60;p&#62;What PHP code is needed to say: &#34;display the title, additional heading and content from post #123&#34;????????  Please let me know.  Thank you for your help Dude.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Simple PHP question for Avisio"</title>
			<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio#post-16390</link>
			<pubDate>Wed, 06 Apr 2011 05:33:29 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">16390@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
you can display the tirle by using following code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h1 class=&#38;quot;siteheading&#38;quot;&#38;gt;
			&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php _e(&#38;#39;Permanent Link:&#38;#39;,&#38;#39;avisio&#38;#39;)?&#38;gt; &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;
			&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The additional headline is called in header.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$headline = get_post_meta($post-&#38;gt;ID, &#38;quot;_headline&#38;quot;, true);
	if($headline != &#38;quot;&#38;quot;) $headline = &#38;#39;&#38;lt;h2&#38;gt;&#38;#39;.$headline.&#38;#39;&#38;lt;/h2&#38;gt;&#38;#39;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;#39;&#38;lt;div class=&#38;quot;center&#38;quot;&#38;gt;&#38;#39;;
	if($headline != &#38;quot;&#38;quot;) echo $headline;
	echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The content displays with following code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;the_content();&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>phil227 on "Simple PHP question for Avisio"</title>
			<link>http://www.kriesi.at/support/topic/simple-php-question-for-avisio#post-16327</link>
			<pubDate>Tue, 05 Apr 2011 08:47:44 +0000</pubDate>
			<dc:creator>phil227</dc:creator>
			<guid isPermaLink="false">16327@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Thank the heavens for Avisio, another incredible Kriesi WordPress theme.  Quick question:&#60;/p&#62;
&#60;p&#62;Let's say that a WordPress page of mine has post ID #123.&#60;/p&#62;
&#60;p&#62;Can you please tell me the PHP code I would use to display the following:&#60;/p&#62;
&#60;p&#62;- the title of that page, with its permalink&#60;br /&#62;
- the &#34;Additional Headline&#34; text for that page (like a subheading)&#60;br /&#62;
- the content of that page&#60;/p&#62;
&#60;p&#62;In terms of formatting, I'm super happy with the standard Avisio formatting; the title has I believe class &#34;siteheading&#34; (with its jazzy font replacement) the content has I believe class &#34;entry-content&#34;.&#60;/p&#62;
&#60;p&#62;If I knew PHP I wouldn't dare ask such a simple question.  If the experts out there could please share your PHP knowledge, it would really make my day!  Thank you.&#60;/p&#62;
&#60;p&#62;Phil
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
