Skip to main content
edited title
Link

Returning info from MYSQL table via custom taxonomy Update: Custom Term Taxonomy Meta Data

added 95 characters in body; edited title
Source Link

Returning info from MYSQL table via custom taxonomy Update: Custom Term Taxonomy Meta Data

Update: I'm now trying to find a way to echo the metadata of a custom taxonomy's value.

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

So far I'm trying to call the current post taxonomy's value but I can't get it to work outside the loop

<?php
$current_tax = get_query_var('game');
echo $current_tax;
?>

Returning info from MYSQL table via custom taxonomy

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

So far I'm trying to call the current post taxonomy's value but I can't get it to work outside the loop

<?php
$current_tax = get_query_var('game');
echo $current_tax;
?>

Returning info from MYSQL table via custom taxonomy Update: Custom Term Taxonomy Meta Data

Update: I'm now trying to find a way to echo the metadata of a custom taxonomy's value.

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

So far I'm trying to call the current post taxonomy's value but I can't get it to work outside the loop

<?php
$current_tax = get_query_var('game');
echo $current_tax;
?>
added 195 characters in body
Source Link

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

So far I'm trying to call the current post taxonomy's value but I can't get it to work outside the loop

<?php
$current_tax = get_query_var('game');
echo $current_tax;
?>

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because some of the information will be identical across some of the parts of the site instead of storing the information in custom fields I'm trying to store it in a MYSQL table. What I'd like the code to do is to identify the post taxonomy, lookup the id field in my table, find the row with that shares the id with the taxonomy and then echo the values of other fields on that row.

I have my taxonomy setup as well as my table but I can't find much of a precedent for this and therefore I'm struggling to know where to start.

So far I'm trying to call the current post taxonomy's value but I can't get it to work outside the loop

<?php
$current_tax = get_query_var('game');
echo $current_tax;
?>
Tweeted twitter.com/#!/StackWordPress/status/46396201729392641
Source Link
Loading