buckyboog
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Multiple templates for single archive pageDoes anyone have any improvements/corrections I can make to my PHP? It works… but is there a more correct way to do the code?
Forum: Themes and Templates
In reply to: Multiple templates for single archive pageProgress?
I can’t get the branching single.php to a different single page template beyond the first category specified for a single post.
But this seems to be able to detect the current category, and return the correct content based on the posts CURRENT category.
<?php $catname = 0 ; $catname = get_query_var('cat'); if ( $catname =='21') { ?> Category 21 <?php } elseif ( $catname == '19' ) { ?> Category 19 <?php } else { ?> Category Other <?php } ?>
Forum: Themes and Templates
In reply to: Multiple templates for single archive pageSame thing here. A given post in multiple categories will only display using a single template…
I’m having the same problem, I have different single-14.php, single-15.php, single-16.php, templates with a single.php that directs them appropriately…
I have a post in categories 14, 15, and 16… I want to show the appropriate template based on what category someone is viewing..
so website.com/14/the-post
would pull up a different template thanwebsite.com/16/the-post
This is not the case, website.com/16/the-post and website.com/15/the-post always pull up with first category and template, in this example website.com/14/the-post
Forum: Fixing WordPress
In reply to: Sociable plugin layout from vertical to horozontal?I have the same problem the icons are lined up vertically…
WP 2.3.3, Heavily modified Sandbox theme.
I know the style sheet getting loaded, because disabling it changes the look… I see bullets on the list items all of a sudden.
I don’t think it’s a browser issue because I have seen the menu on other sites horizontally, and I see the same thing in Safari and Firefox.
The display: inline is the significant bit in the stylesheet right?
.sociable ul { display: inline; margin: 0 !important; padding: 0 !important; } .sociable li { background: none; display: inline; list-style-type: none; margin: 0; padding: 1px;
Forum: Fixing WordPress
In reply to: Please help: how to iterate through Custom field array?<div class=”copy”><?php echo c2c_get_custom(‘yOuRliSt’, ‘<b>List of things: </b>’, ”, ”, ‘, ‘); ?></div>
Forum: Fixing WordPress
In reply to: Getting values from custom fieldsThis is what ended up working:
<?php $magazine_url= c2c_get_custom('Magazine URL'); $magcheck=$magazine_url[0]; if (!empty($magcheck)) { echo '<a href="' . c2c_get_custom('Magazine URL', '', '','') . '"> '; } ?>
Forum: Plugins
In reply to: [Plugin: TDO Tag Fixes] Category/Tag Intersections and query_posts orderMy solution is to included the sort order into the url
category/whatever?tdo-tags=fungie&orderby=title&order=ascIt works… does anyone know that passing variables in the URL is called within WordPress? I want to find out more but I can’t search the docs just for &,? and =
Forum: Fixing WordPress
In reply to: Getting values from custom fieldsI am having a devil of a time getting an array of data out of a field with multiple values (checkbox list)
I either get just one of the values or I get the word “Array”
<?php echo get_post_custom_values(‘Modality’); ?>
Gives “Array”
or
<?php if(get_post_custom_values(‘Modality’)) :
foreach(get_post_custom_values(‘Modality’) as
$modality) {} ?>
<div class=”source”>Modality: <?php echo
$modality; ?></div>
<?php endif; ?>Only gives one of the values
Forum: Plugins
In reply to: Custom Write Panel and WordPress Version 2.3The diff/patch code is no longer there. Anybody know if or when rhymedcode is going to release patched for 2.3?