Jim R
Forum Replies Created
-
Forum: Hacks
In reply to: Trying to pass a WP variable to a file outside of WPWhat would that look like concatenated? nameFirst nameLast
Yes, I’d like to send the players name nameFirst nameLast or id_player to data.php, so I can use it to just extra one row of data for index.php, which is where the jQuery is.
OR…
I put the data.php query on the WP Page. At one point I couldn’t get the query to work. Now, it does. It gives me my one row of data when it prints the JSON:
[{"name":"Player","data":[31]},{"name":"Shooting On Catch","data":[6]},{"name":"Shooting off Dribble","data":[7]}]
Now I can’t get the jQuery (index.php) to read that data even though I changed the file it’s calling information from.
Forum: Hacks
In reply to: Trying to pass a WP variable to a file outside of WPI understand what the JSON looks like.
[{“name”:”Player”,”data”:[null,null,null]},{“name”:”Shooting On Catch”,”data”:[6,4,7]},{“name”:”Shooting off Dribble”,”data”:[7,4,8]}]
The problem is getting it to just pull one of each. Right now, there are just three for testing, but there will be close to 800 when it’s all said and done.
Forum: Hacks
In reply to: Trying to pass a WP variable to a file outside of WPI”m not having a problem on that end of it, and it uses JSON. The problem is it sends every row in the data table, and I need it to narrow in on the row dealing with the Slug of the WP Page, in this case, a player’s name.
I have to be able to pass the Slug to data.php.
Forum: Hacks
In reply to: I'm trying to add content to Pages from separate data table…I dug a little deeper and figured out there is a display setting for a template tag.
Forum: Hacks
In reply to: I'm trying to add content to Pages from separate data table…I checked the collations. They do match as much as I can tell.
I’ve been digging more into this, and I found out this line:
$slug = single_tag_title();The value of single_tag_title isn’t being passed to $slug. It’s just printing it, which in this case is a basketball player’s name. That just seems very odd to me, but any time I do something like this there is a learning curve.
Forum: Plugins
In reply to: [WP Super Cache] Installed and now logins don't work…I hadn’t changed any settings. My host loaded the plugin without my consent.
Forum: Fixing WordPress
In reply to: HTML Form adding BR after each hidden element…In the past, I haven’t had the same issue with one of the default themes. I couldn’t find my fix from a previous theme, nor where I found it on here.
What I did, for those having the same issue, is a bit of a CSS trick.
(name of .class or #ID) br { display: none; }
So just for the “br” within your ID or class tag disappears.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…The only time the caption showed up was if I inserted the picture into the Post. Used just as the Featured Image, the caption did not show, even though the Post uses the image at the top of the page.
I’d assume what a person can do if they’re having the same issue is insert an image into the Post then preview the Post.
From there, using their browser tools, such as Firebug, inspect the HTML creating the image in the Post. Find what writes the caption and hard code it into your theme’s single.php file.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…Ok…I just added it to my Post, and the caption shows up.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…I’ve not really added many captions. I’ve been making them part of the image (Player names), but the new theme, while much nicer than I had before, makes it too cluttered on the homepage grid.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…Just now, decativated NGG, switched to Twenty Twelve, added New Post, added Featured Image, put in captions, Published.
No captions.
NGG is the only image plugin I have.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…I deactivated NGG, switched to Twenty Twelve. No caption.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…I hadn’t updated to 3.5.1 actually. The three plugins that needed updating were two bbPress plugins and User Role Editor.
I checked using Twenty Twelve. It still didn’t work.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…I tried Twenty Twelve. It didn’t work there either.
Forum: Fixing WordPress
In reply to: Getting image caption to show up…Oh, I’m quite sure I do. ??
NextGen Gallery