Jim R
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Printing Tags instead of Description or Title…??
Forum: Plugins
In reply to: Trying to link tagged photo to Tag Archive pages…??
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] NextGEN TagsThey can be integrated with short codes and related images.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Related Image option…So in my case for example, term_id 68 has eight post_tags and 41 ngg_tags. How would I go about pulling the images with matching term_id, echo’ing the photos with the applicable ngg_tags?
I would need to echo the images with the ngg_tag that has the matching term_id as the term_id for that Tag Archive page.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Related Image option…It appears to be working on Posts, and the tags show up in the Manage Gallery admin section. I can’t seem to locate where NextGen stores its tags in the database though.
The NextGen plugin homepage showed a snippet of code so it could be used elsewhere, which I assume to mean on a Single.php, which is what Posts are shown on. I’d like to use that code on my theme’s Tag.php (Tag archive page).
On my Tag.php I have included code from another PHP page which gets information about about that Tag from a data table that I created and maintain. (Information about basketball players.) So I’m able to carry the tagID from WordPress to that page. I’m hoping to be able to match that with the tag information from my images, which would produce related images the same way as they do on Posts.
Here is an example of what I’m talking about:
https://hoosierhoopsreport.com/tag/justin-gant/
Everything from RECENT ARTICLES and above are from my custom code. I have a var_dump in there too, which reflects the WordPress tagID, in this case “72”. I assumed the Tag information would match the same way as it does on Posts, but I guess it doesn’t.
Any thoughts?
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Related Image option…Tested it in a php code widget. It didn’t work there either.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Related Images – Tags, Categories….Archives???
Forum: Fixing WordPress
In reply to: Archive permalink for custom taxonomy term gives 404This didn’t work for me.
Forum: Fixing WordPress
In reply to: Tag ListIs there a way to list in order of most recently used tag? ??
Forum: Plugins
In reply to: [Plugin: My Category Order] It just did not work for me at allIt’s not working for me on the site’s navigation.
Forum: Fixing WordPress
In reply to: Tag Archive and Search Archive…I got to playing around with it and figured it out. MUCH easier than I thought, and now I’m wondering if all that I did for the Tag Archive was necessary. In fact, I’m pretty sure now it wasn’t.
You’ll be able to see the similarities in how I set this up based on what I did above:
$wp_searchSlug = get_search_query(); mysql_select_db("jwrbloom_wpHHR"); $query = 'SELECT * FROM wp_playerRank'; $results = mysql_query($query); while($line = mysql_fetch_assoc($results)) { if ($line['nameFirst'].' '.$line['nameLast'] == $wp_searchSlug) {
I uploaded that, hoping it would at least just not give me an error, and it worked. I was shocked. For once, logic matched syntax.
??
Forum: Fixing WordPress
In reply to: Tag Archive and Search Archive…I figured they followed the same logic. My question is do I do this as part of the same file because I have essentially created a plugin to get the data to my Tag Archive. What I’m missing mentally (i.e.failing to grasp) is how to link my search results (a player’s name) to my data table.
BTW…jwrbloom_wpHHR is the same database for all of this.
I’m assuming it needs to get to a point where it reads…
if ($line['wpID'] == (whatever I have defining my search results)) {
The problem I’m seeing is my wpID is set up to match the Slug created by Tags. Which for a players name looks like FirstName-LastName. Search results are producing names that look like FirstName+LastName, a + instead of a -.
Bummer, dude. ??
Forum: Fixing WordPress
In reply to: Category Template…Figured it out. It needs to be in_category. is_category checks to make sure what category archive page you’re on. in_category checks to make sure what category the post is in.
Nice! I do love WP.
Forum: Fixing WordPress
In reply to: Category Template…Nothing happens. What I want to happen logically is:
If I’m in a post under the category of Newsstand (id=429), print “this” at the top of the post (single.php).