nbierma
Forum Replies Created
-
Forum: Plugins
In reply to: [Audio Player] [Plugin: Audio Player] Not showing up in 3.1That wasn’t it for me, but I did find a separate broken plugin that I removed, and the audio player reappeared.
Forum: Plugins
In reply to: [Audio Player] [Plugin: Audio Player] Not showing up in 3.1Same here ?? Worked in previous WP versions but not 3.1. Anyone have any ideas??
Forum: Plugins
In reply to: [Plugin: Custom Taxonomies] display description for categoryOK, I found it here — https://bit.ly/9ldLdc :
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?> <?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsThat did it. Thanks!!
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsMichael,
Then I get a
unexpected T_ENDIF in […]single.php on line 41
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsOK let me try that, thanks.
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsI’ve actually gotten this to work using the other method I found elsewhere in the forums:
<?php
$key = 'image';
$themeta = get_post_meta($post->ID, $key, TRUE);
if($themeta != '') {
echo '<img src='.$image.'>';
}
?>
If I had my preference I wouldn’t go this route because it requires echo-ing the HTML in quotes and stringing it to the variable. But that aside, does it make any difference which method I use?
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsHere’s what I’m working with:
https://wordpress.pastebin.com/1rCXHWz0it’s loaded with custom fields; so far all of them are used on each post, I need to add one that only appears if it exists/has content.
Forum: Themes and Templates
In reply to: Conditional tag if $customfield existsPeter, when I try that block of code I get
'Parse error: syntax error, unexpected '<' in [...]single.php on line 36'
with line 36 being ‘
<?php if ( $image ) { ?>
‘Any idea what I might be doing wrong?
Thanks,
Nathan
Forum: Installing WordPress
In reply to: Error establishing a database connectiongetting ‘Error establishing a database connection’
My database is at 000webhost.com; I entered this info in wp-config.php
define(‘DB_NAME’, ‘a3177430_trying’);
define(‘DB_USER’, ‘a3177430_nbierma’);
define(‘DB_PASSWORD’, ‘——–‘);
define(‘DB_HOST’, ‘https://mysql9.000webhost.com’);advice?
Thanks,
Nathan