phpchick
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: simple syntax issue of hardcoded value vs GET variableCould this be an issue with the database?
I feel like the above should work
typing in the string works, but the identical string given through a variable doesn’t. The var_dump suggests that they are identical from what I can see. Anyone have any insight?
Forum: Fixing WordPress
In reply to: simple syntax issue of hardcoded value vs GET variableAnd here is %_GET by itself
array(5) {
[“category”]=> string(5) “beats”
[“date”]=> string(1) “4”
[“sector”]=> string(10) “Financials”
[“expected_deviation”]=> string(8) “Moderate”
[“expected_outlook”]=> string(7) “Neutral”
}Forum: Fixing WordPress
In reply to: simple syntax issue of hardcoded value vs GET variableI did
var_dump($_GET['sector']);and out went
string(10) “Financials”
$args = array( 'post_type' => 'earnings', // use to be stock 'posts_per_page' => 1, 'offset' => $_GET['offset'], 'meta_query' => array( array( 'key' => 'sector', 'value' => $_GET['sector'], 'compare' => '=' )) );It still doesn’t work even with the compare line
So I’m starting to figure it out.
I changed the code to below and it works. However, obviously, the value is hard coded in.
$args = array( 'post_type' => 'earnings', // use to be stock 'posts_per_page' => 1, 'offset' => $_GET['offset'], 'meta_query' => array( array( 'key' => 'sector', 'value' => 'Healthcare' )) );If I try to have it pull from the GET variable in the URL like below, it does not work.
$args = array( 'post_type' => 'earnings', // use to be stock 'posts_per_page' => 1, 'offset' => $_GET['offset'], 'meta_query' => array( array( 'key' => 'sector', 'value' => $_GET['sector'] )) );At this point I’m sure it is a layup, can anyone see any syntax issues?
Forum: Fixing WordPress
In reply to: Creating a clean independent page within wordpressYes, this is exactly what I was looking for, I just did not know how wordpress structures itself. Thank you!
Forum: Fixing WordPress
In reply to: Suggestions on organization – story vs homeI may want to include more than only that specific post type in this “mini-homepage” though.
Archives by default only display one type of post right?
In addition it is dynamically generated by the URL it seems like, so a user could arrive at a archive page with no stock just by modifying the URL. It doesn’t seem like a good idea for SEO purposes either since it is only one URL with dynamically generated content?
Forum: Fixing WordPress
In reply to: Help with identifying function of this snippet?I replaced the above portion with
if ($_GET['symbol']) { $args['meta_query'][] = array( 'key' => 'symbol', 'value' => $_GET['symbol'], 'compare' => '=' ); }and it seems to work
[No bumping, thank you.]
Forum: Plugins
In reply to: [Plugin: Facebook Comments for WordPress] Doesn’t work for meThe anonymous posting still does not work yet. has facebook yet to fix it or is it something with the plugin?
Forum: Fixing WordPress
In reply to: Make wp_tag_cloud know when a tag is outdatedanybody?
Forum: Plugins
In reply to: [Plugin: Facebook Comments for WordPress] Doesn’t work for methat looked like it did the trick
Forum: Plugins
In reply to: [Plugin: Facebook Comments for WordPress] Doesn’t work for me<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href=<?php echo urlencode(get_permalink($post->ID)); ?> layout="button_count" show_faces="false" width="30" font="arial"></fb:like>this is the one Im using on the site, in the singe.php
Forum: Plugins
In reply to: [Plugin: Facebook Comments for WordPress] Doesn’t work for meI had 1.52 and everything was working fine except for anonymous posts not working (but I believe you said it was broken on facebooks end).
Then I saw the update to 1.6 so I thought it might have been fixed.
I did an automatic install, and the plugin doesn’t work at all now.
On the posts, the “loading” splash is displayed indefinitely.
I’m on WP 3.04
And I should note that I have the default facebook like button code from FB on the page, as well as the Addthis widget
Forum: Fixing WordPress
In reply to: Make wp_tag_cloud know when a tag is outdatedthe post in that link says that the man is using “the text2tag plugin (this plugin adds all postcontent to a custom taxonomy as tags)”.
Do I have to install that plugin for any of those codes to work ?