Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Tag: meta Help In Shaping WordPress Themes en Fri, 29 May 2015 22:14:39 +0000 helgatheviking on "Question about "the loop"" Sun, 27 Nov 2011 21:26:27 +0000 helgatheviking 23954@ <p>if you look at the index.php you'll see that "the loop" is being created by the thematic_indexloop() function/hook. then if you go digging around in the extensions folder (the meat and potatoes) you'll find this function in content-extensions.php. turns out it is a hook, since it is defined as</p> <pre><code>function thematic_indexloop() { do_action(&#39;thematic_indexloop&#39;); } // end thematic_indexloop</code></pre> <p>later on in the same file you'll see that thematic_index_loop() is added to this hook and it is, in fact, this function that creates the loop. </p> <p>keep in mind that you don't want to go hacking around in this file, but it sure helps to see what you should be doing in your own functions.php to make changes. </p> <p>for instance you could either copy the entire thematic_index_loop() function into your child theme and rename it childtheme_override_index_loop(). or you could take note of the thematic_abovepost() and thematic_belowpost() hooks that are in the loop and see if adding something to those might be enough. </p> <p>if you need help understanding how to add something take a look at this post i wrote:<br /> <a href="" rel="nofollow"></a> </p> drewdavid on "Question about "the loop"" Sun, 27 Nov 2011 19:57:01 +0000 drewdavid 23951@ <p>Hi there. I'd like to create an effect where the post title and meta has a background that comes from the left edge of the page and surrounds it, but I'm a novice with this sort of thing.</p> <p>I'd like to add a div around the post title and meta to accomplish this, but I'm unclear where this is found. It seems that "the loop" is being called, does this get created in archives.php?</p> <p>Thanks I would love to hear some helpful advice on achieving this effect. My other stumbling block is that the title and meta divs are inside the content div, but this background would (again) travel all the way to the edge of the page.</p> <p>I hope this makes sense. You can see how I'm doing so far at <a href="" rel="nofollow"></a></p> <p>Thanks! </p> helgatheviking on "How To Remove Timestamp and By..." Sat, 19 Nov 2011 12:58:08 +0000 helgatheviking 23867@ <p>it's the same process. take a look in the extensions folder of thematic to find the right filter and function names to target. </p> optimus203 on "How To Remove Timestamp and By..." Sat, 19 Nov 2011 01:58:17 +0000 optimus203 23865@ <p>Nice one, as always! I chose the function route. And what about entry-utility? </p> helgatheviking on "How To Remove Timestamp and By..." Sat, 19 Nov 2011 01:41:23 +0000 helgatheviking 23864@ <p>several ways to skin the cat (where <em>did</em> that phrase come from anyway). to completely remove the post meta you could do:</p> <pre><code>add_filter(&#39;thematic_postheader&#39;,&#39;htv_postheader&#39;); function htv_postheader() { $postheader = thematic_postheader_posttitle(); return $postheader; } // end postheader</code></pre> <p>or </p> <pre><code>add_filter(&#39;thematic_postheader&#39;,&#39;htv_postheader_postmeta&#39;); function htv_postheader_postmeta() { //sound of one hand clapping }</code></pre> <p>or if you wanted to go the function route you could do:</p> <pre><code>function childtheme_override_postheader_postmeta(){ //sound of one hand clapping }</code></pre> <p>please check out my explanation of hooks and filters:<br /> <a href="" rel="nofollow"></a> </p> optimus203 on "How To Remove Timestamp and By..." Sat, 19 Nov 2011 01:34:22 +0000 optimus203 23863@ <p>I would like to know how to remove this using functions, as opposed to hiding with css.</p> <p>How would I go about removing the meta-date and entry-utility using hooks? </p> Sabra on "Move post footer to post meta" Sun, 13 Nov 2011 13:13:08 +0000 Sabra 23793@ <p>Hi guys, I can't figure this out and the available topics don't work for me.</p> <p>I'm trying to move the post footer (category, comments etc.) inside the entry-meta div. I'm a php noob, so I'm sorry if this sounds really simple to some of you. :)</p> <p>Thanks,<br /> Sabra </p> petergus on "How To Remove Timestamp and By..." Sat, 27 Aug 2011 00:22:09 +0000 petergus 22865@ <p>I know this is old but seems like a relevant place to ask it....</p> <p>how can we hide it in pages and search results, but still let it apear on post (in the 'blog')? </p> RedStarWeb on "Adding Gravar to Posts" Fri, 12 Aug 2011 19:22:37 +0000 RedStarWeb 22662@ <p>Very helpful! Now I just need to find the best way to style it. Wrapping the avatar in a div seems to work, but it seems like there's probably a better way of doing it.</p> <p>Current output:</p> <p>// Add Author Gravatar to Posts</p> <p>function author_gravatar($postmeta) {<br /> $author_avatar = '&lt;div class="author-avatar"&gt;'; // Trying to format the image by containing it in a div. Not sure if thats the right move.<br /> $author_avatar .= get_avatar( get_the_author_email(), '80' );<br /> $author_avatar .= '&lt;/div&gt;';<br /> if(!is_page() ) {<br /> $postmeta .= $author_avatar;<br /> }<br /> return $postmeta;</p> <p> add_filter('thematic_postheader', 'author_gravatar');<br /> }</p> <p>add_filter('thematic_postheader', 'author_gravatar'); </p> helgatheviking on "Adding Gravar to Posts" Fri, 12 Aug 2011 19:13:13 +0000 helgatheviking 22661@ <p>glad that helped. </p> <p>to not display on pages simply wrap the insides w/ a conditional tag</p> <p>is_page() test for whether it is a page or not<br /> ! makes it negative.... so NOT a page. </p> <p></p> <pre><code>function bacon(){ if(!is_page(){ echo &quot;sooo not a page. let&#39;s have bacon&quot;; } } add_action(&#39;thematic_before&#39;,&#39;bacon&#39;);</code></pre> RedStarWeb on "Adding Gravar to Posts" Fri, 12 Aug 2011 18:21:36 +0000 RedStarWeb 22659@ <p>Okay, I've got it displaying now. I still need to fiddle with styling, and figure out how to keep it from displaying on pages, but if anyone's interested here's what I did:</p> <p>// Add Author Gravatar</p> <p>function author_gravatar($postmeta) {<br /> $author_avatar = get_avatar( get_the_author_email(), '80' );<br /> $postmeta .= $author_avatar;<br /> return $postmeta;<br /> }</p> <p>add_filter('thematic_postheader', 'author_gravatar'); </p> RedStarWeb on "Adding Gravar to Posts" Fri, 12 Aug 2011 17:11:41 +0000 RedStarWeb 22657@ <p>Fantastic resouce, Helga. I think I'm on the right track, but I'm missing something. Here's what I've got right now:</p> <p>// Add Author Gravatar to Posts</p> <p>function author_gravatar() {<br /> return '$postmeta' . 'echo get_avatar($author_email, '80')';<br /> }<br /> add_filter('thematic_postheader' . 'author_gravatar'); </p> helgatheviking on "Adding Gravar to Posts" Fri, 12 Aug 2011 16:20:21 +0000 helgatheviking 22656@ <p>try reading the primer i just wrote for someone else on how to add things to hooks and how to filter things</p> <p><a href="" rel="nofollow"></a> </p> RedStarWeb on "Adding Gravar to Posts" Fri, 12 Aug 2011 14:52:20 +0000 RedStarWeb 22654@ <p>I would like to add author gravatar to all my posts, but I'm having a hard time finding a way to do this. I assume I need to filter the post meta data, but I'm not sure where to start. </p> helgatheviking on "Double Meta Description with the SEO plugin by Yoast" Fri, 08 Jul 2011 03:58:20 +0000 helgatheviking 22219@ <p>don't forget to mark as resolved </p> Tom Kroscavage on "Double Meta Description with the SEO plugin by Yoast" Fri, 08 Jul 2011 03:33:21 +0000 Tom Kroscavage 22218@ <p>Thanks! </p> helgatheviking on "Double Meta Description with the SEO plugin by Yoast" Fri, 08 Jul 2011 02:31:13 +0000 helgatheviking 22215@ <p>i think this should remove the thematic description</p> <pre><code>//Remove Thematic Meta Description function remove_description($display) { $display = FALSE; return $display; } add_filter(&#39;thematic_show_description&#39;, &#39;remove_description&#39;);</code></pre> Tom Kroscavage on "Double Meta Description with the SEO plugin by Yoast" Thu, 07 Jul 2011 22:14:39 +0000 Tom Kroscavage 22214@ <p>I have two meta descriptions in all my post headers the first meta description is the same as my excerpt. I would like to remove this one. the second is generated by the Yoast WordPress SEO plugin.</p> <p>Here is a post from my site:<br /> <a href="" rel="nofollow"></a> </p> candregg on "Add post_meta custom field data only when fields are true" Thu, 30 Jun 2011 16:34:23 +0000 candregg 22098@ <p>For the most part, that worked like a charm: <a href="" rel="nofollow"></a> One remaining issue is that the &#38;sponsorlink call is generating an extra character string, %3e, that is messing up the actual sponsor's links. Any idea where that's coming from?</p> <p>Other than that, it's beautiful. I knew some kind of conditional test was the answer; I just kept messing up the syntax for so many hours that I got frustrated. Thanks for demonstrating it so clearly.</p> <p>Yes, I've seen the function childtheme_override_category_loop() in the newer version of thematic, but have not (until now) had occasion to use it.</p> <p>Will file your magic and tips for future use. </p> helgatheviking on "Add post_meta custom field data only when fields are true" Wed, 29 Jun 2011 21:26:53 +0000 helgatheviking 22086@ <p>"if I apply it globally"</p> <p>does that mean you tried filtering the_content()?</p> <p>which is what i'd do and just add in a condition to test if $sponsortext exists</p> <pre><code>function add_after_content($content) { global $post; $sponsortext = get_post_meta($post-&gt;ID , &#39;sponsor&#39;, true); $sponsorlink = get_post_meta($post-&gt;ID , &#39;sponsorlink&#39;, true); if($sponsortext &#38;&#38; $sponsorlink){ $sponsor = &#39;&lt;div id=&quot;sponsor&quot;&gt;&#39;; $sponsor .= &#39;&lt;p&gt;&#39;. $sponsortext.&#39;&lt;/p&gt;&#39;; $sponsor .= &#39;&lt;p&gt;For more information visit the website, &lt;a href=&quot;http://&#39;.$sponsorlink.&#39;&gt;&quot; target=&quot;_blank&quot;&gt;http://&#39;.$sponsorlink.&#39;&lt;/a&gt;&lt;/p&gt;&#39;; $sponsor .= &#39;&lt;/div&gt;&#39;; $content .= $sponsor ; } return $content; } add_filter(&#39;the_content&#39;, add_after_content);</code></pre> <p>totally untested, you might need to escape the backslashes... i'm not sure, but i think the concept is right. </p> <p>ps- you can now use </p> <p>function childtheme_override_category_loop() </p> <p>and you don't need to add or remove any actions. it's magic. </p> candregg on "Add post_meta custom field data only when fields are true" Wed, 29 Jun 2011 20:58:55 +0000 candregg 22084@ <p>I'm a relative noob trying to filter post content selectively. </p> <p>In my installation, only posts in one category include the custom fields "sponsor text" and "sponsor link".</p> <p>If I create a custom category loop by category, the custom fields do not show up in single posts; if I apply it globally, then the special div to hold the meta data appears on ALL posts, even where the custom field data doesn't exist.</p> <p>Here is the global function:</p> <pre><code>// Custom Category Loop function remove_category_loop(){ // first remove the thematic action remove_action(&#39;thematic_categoryloop&#39;, &#39;thematic_category_loop&#39;); remove_action(&#39;thematic_archiveloop&#39;, &#39;thematic_archive_loop&#39;); } add_action(&#39;init&#39;,&#39;remove_category_loop&#39;); function child_category_loop() { // now rebuild your version of the action while (have_posts()) : the_post(); global $post; $sponsortext = get_post_meta($post-&gt;ID , &#39;sponsor&#39;, true); $sponsorlink = get_post_meta($post-&gt;ID , &#39;sponsorlink&#39;, true); ?&gt; &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; class=&quot;&lt;?php thematic_post_class(); ?&gt;&quot;&gt; &lt;?php thematic_postheader(); ?&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;?php thematic_content(); ?&gt; &lt;div id=&quot;sponsor&quot;&gt; &lt;p&gt;&lt;?php echo $sponsortext; ?&gt;&lt;/p&gt; &lt;p&gt;For more information visit the website, &lt;a href=&quot;http://&lt;?php echo $sponsorlink; ?&gt;&quot; target=&quot;_blank&quot;&gt;http://&lt;?php echo $sponsorlink; ?&gt;&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php thematic_postfooter(); ?&gt; &lt;/div&gt;&lt;!-- .post --&gt; &lt;?php endwhile; } add_action(&#39;thematic_categoryloop&#39;, &#39;child_category_loop&#39;); add_action(&#39;thematic_archiveloop&#39;, &#39;child_category_loop&#39;);</code></pre> <p>This code works great for the one category page, <a href="," rel="nofollow">,</a><br /> But not for the general blog category page, <a href="" rel="nofollow"></a> </p> <p>I'm sure the answer is an if-else construction,but so far I haven't been able to code one that works. </p> <p>Please advise, if possible. </p> helgatheviking on "Removing specific parts of the post-meta" Wed, 22 Jun 2011 20:19:13 +0000 helgatheviking 21995@ <p>you can read through the extensions folder and see where they exist. pretty much they'll be wrapped in a function that looks like</p> <pre><code>if (function_exists(&#39;childtheme_override_special_function&#39;)) { function thematic_special_function() { childtheme_override_special_function(); } } else { function thematic_special_function() { echo &quot;bacon!&quot;; } }</code></pre> maren.m on "Removing specific parts of the post-meta" Wed, 22 Jun 2011 19:20:56 +0000 maren.m 21994@ <p>Thanks!! Very helpful.<br /> Where can I learn more about these built-in overrides? </p> helgatheviking on "Removing specific parts of the post-meta" Fri, 17 Jun 2011 14:43:52 +0000 helgatheviking 21919@ <p>the actions are mostly in the extensions folder, the ones you are looking for are shown in content-extensions.php</p> <p>you can also use the built-in overrides for most of those.... so to override the post-meta</p> <pre><code>function childtheme_override_postheader_postmeta(){ return &#39;i just wrote bacon in place of the postmeta&#39;; }</code></pre> <p>THEMATIC_COMPATIBLE_POST_CLASS is like the dynamic body classes but for individual posts. if you enable it (define it as true i think) and then look at your site's source code you will see</p> <p>&lt;div id="post-09" class="category and a bunch of other possible post classes that I am not uber familiar with"&gt;</p> <p>i've taken advantage of the body classes, but while i usually enable the post classes i've almost never used them </p> vicky515 on "Removing specific parts of the post-meta" Fri, 17 Jun 2011 03:31:47 +0000 vicky515 21914@ <p><a href="" rel="nofollow"></a></p> <p>If you want to remove it completely, there's probably a remove_action or remove_filter you can use, but I don't know it :\</p> <p>And regarding THEMATIC_COMPATIBLE_POST_CLASS - I'd love to know that myself &gt;_&gt; </p> maren.m on "Removing specific parts of the post-meta" Thu, 16 Jun 2011 20:25:36 +0000 maren.m 21903@ <p>Hi there,</p> <p>So I'm trying to remove meta data from posts--author, category, date, etc. on both the index and single pages. I get the basic concept of removing stuff using actions, but I'm still kind of confused about how to go about FINDING the right action to remove. I've dug around in the thematic code a little bit but can't find the specifics I'm looking for. </p> <p>Also...can anyone tell me what THEMATIC_COMPATIBLE_POST_CLASS is? Just curious. </p> <p>Thanks!! </p> revolve on "Trying to get entry-meta function to show up in post" Thu, 24 Feb 2011 04:57:44 +0000 revolve 19344@ <p>Hi, I'm trying to find the proper function to get my entry meta to show up. So far I've been able to get my excerpt, the_post_thumbnail and entry-title, but have a hard time finding the proper function for the rest. Can you help? </p> <p>I'm totally new to PHP so forgive me if I'm missing any relevant information. </p> <p>Thanks, code below</p> <p> &lt;div id="container"&gt;</p> <p> &lt;?php thematic_abovecontent(); ?&gt;<br /> &lt;div id="content"&gt;</p> <p> &lt;?php</p> <p> // displays the page title<br /> thematic_page_title();</p> <p> // create the navigation above the content<br /> thematic_navigation_above();</p> <p> // action hook for placing content above the index loop<br /> thematic_above_indexloop();</p> <p> // action hook creating the index loop<br /> //thematic_indexloop();<br /> query_posts('&#38;cat=3');<br /> if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;<br /> &lt;div class="post"&gt;<br /> &lt;h2 class="entry-title"&gt;<a> "rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt; &lt;?php the_title();?&gt;</a>&lt;/h2&gt;</p> <p> &lt;div class="entry-content"&gt;</p> <p> &lt;div class="wp-post-image"&gt;<br /> &lt;?php the_post_thumbnail(); ?&gt;<br /> &lt;/div&gt;<br /> &lt;?php the_excerpt(); ?&gt;<br /> &lt;/div&gt;<br /> &lt;div class="entry-meta"&gt;<br /> &lt;?php add_meta_box(); ?&gt;<br /> &lt;/div&gt;</p> <p> &lt;?php endwhile; else: ?&gt;<br /> &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;/p&gt;<br /> &lt;?php endif; </p> <p> // action hook for placing content below the index loop<br /> thematic_below_indexloop(); </p> <p> // create the navigation below the content<br /> thematic_navigation_below();</p> <p> ?&gt;</p> <p> &lt;/div&gt;&lt;!-- #content --&gt;</p> <p> &lt;?php thematic_belowcontent(); ?&gt; </p> <p> &lt;/div&gt;&lt;!-- #container --&gt; </p> mirko77 on "Custom taxonomies are not saved when 'hierarchical' => false" Thu, 20 Jan 2011 15:48:05 +0000 mirko77 18535@ <p>I figured it out.<br /> The "Choose from most used tags" does not display a list of tags, but only the most used or those which has been used at least once.</p> <p>Is there a way to override this behaviour from functions.php?? </p> <p>Otherwise is there a way to remove the "parenting" feature if I use a custom category (with <code>hierarchical =&gt; true;</code>) instead of tags?</p> <p>Thank you </p> mirko77 on "Custom taxonomies are not saved when 'hierarchical' => false" Thu, 20 Jan 2011 13:25:14 +0000 mirko77 18527@ <p>I created a custom post type called "Images" and a custom taxonomy "Galleries" to group these image entries together.</p> <p>I do not want "Galleries" to be hierarchical but I just need tags therefore 'hierarchical' =&gt; false<br /> If I add the galleries via the main page they are saved and shown properly.<br /> The problem is when I add a new post "Image" and I want to pick up an existing gallery in my meta box, no tags are shown and I get the "no tags" message.</p> <p>If I add my galleries (tags) using the meta box they are actually saved and shown correctly. It is only adding the tags through the main page which does not work. It works if I set 'hierarchical' =&gt; true but I do not need categories, I just need tags.</p> <p>Any suggestion?</p> <p>Thank you </p> amoore on "Posts inside the Pages and subpages" Fri, 14 Jan 2011 18:24:00 +0000 amoore 18375@ <p>Thanks for this great (even when dated) thread! </p> <p>Did Saski's question get answered somewhere? I've got the rest working but would also love this answer:</p> <p>"I am tryng to insert the page content before the category loop, to use that as introduction or a customizable intro area Can you give me a clue on how to edit it to display the page content above the category loop?"</p> <p>Thanks! </p>