ab420
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Get custom taxonomy terms that are attached to the same postsSorry, let me make that more readable:
<?php $args = array( 'hierarchical' => false, 'parent' => 0, 'hide_empty' => true ); $places = get_terms( 'place', $args ); foreach ($places as $place) : $args = array( 'hierarchical' => false, 'parent' => 0, 'hide_empty' => true ); $times = get_terms( 'time', $args ); foreach ($times as $time) : $value = $place->term_id; $value .= ","; $value .= $time->term_id; $text = $place->name; $text .= ","; $text .= $time->name; ?><option value="<?php echo $value; ?>"><?php echo $text; ?></option> <?php endforeach; ?> <?php endforeach; ?> </select>Forum: Fixing WordPress
In reply to: Get custom taxonomy terms that are attached to the same postsI’m using get_terms because I don’t need the posts here, just the actual terms (it’s for a dropdown menu to choose what type of posts will be displayed – that part works).
Here is the code so far:
<?php $args = array( 'hierarchical' => false, 'parent' => 0, 'hide_empty' => true ); $places = get_terms( 'place', $args ); ?> <?php foreach ($places as $place) : ?> <?php $args = array( 'hierarchical' => false, 'parent' => 0, 'hide_empty' => true ); $times = get_terms( 'time', $args ); ?> <?php foreach ($times as $time) : ?> <?php $value = $place->term_id; $value .= ","; $value .= $time->term_id; $text = $place->name; $text .= ","; $text .= $time->name; ?> <option value="<?php echo $value; ?>"><?php echo $text; ?></option> <?php endforeach; ?> <?php endforeach; ?> </select>Forum: Plugins
In reply to: [Plugin: Vote It Up] External Voting ButtonI need this as well, and would be more than happy to make a donation if this feature becomes available.
Forum: Themes and Templates
In reply to: How do I make individual posts display a different theme?Not sure if this is helpful, but it might give you a start:
http://blue-anvil.com/archives/including-css-javascript-in-wordpress-posts-using-custom-fields/
Viewing 4 replies - 1 through 4 (of 4 total)