csam0003
Forum Replies Created
-
Would appreciate some help!!
Forum: Fixing WordPress
In reply to: Permalink of a page NOT postThank you!!!!
Forum: Plugins
In reply to: [WP Glossary] Multiple GlossariesIs there a way to however use multiple glossaries like so:
http://www.siteA.com/directory/Mcdonalds
http://www.siteA.com/business-glossary/pricewhere directory and business-glossary are two separate glossaries?
Thank you
Regards
ChrisForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Bug to inset image/link in cellRemoved another plugin and everything worked great! Thank you very much for the prompt reply however and great plugin!
Forum: Plugins
In reply to: query_vars filter doesn't work (?)thanks alot stvWlf! U have been really helpful.
What I did was get the value in the template as you suggested and then passed it to the plugin…
This issue can be closed.thanks once again
Forum: Plugins
In reply to: query_vars filter doesn't work (?)The issue that guy is having (link above) is the exact same problem.
In the page template it works. In the plugin it doesnt…Forum: Plugins
In reply to: query_vars filter doesn't work (?)It seems this guy had the same problem
http://ww.wp.xz.cn/support/topic/wp_query-gtquery_vars?replies=2Forum: Plugins
In reply to: query_vars filter doesn't work (?)So in the page template I printed the value of the refID. So until that point it works. On the forms page however a number of fields are filled in and on clicking the submit button, a plugin is called which calls a function that puts together a url with the form data and (im hoping) the refID.
function hook_ajax_register() { global $wp_query; $refId = $wp_query->query_vars['refId']; $this->marketing_code = $refId; $url_params = array( 'lang' => $this->lang, 'wlinfo' => $this->wlinfo, fname' => filter_var($data['clientFirstName'], FILTER_SANITIZE_STRING), 'code' => $this->marketing_code, } etc... for some reason the marketing code is now returning an unknow value... If I directly print the value on the page template it works, however calling it in my plugin seems not to! So registering the variable is working, however getting the value in the plugin is not!Forum: Plugins
In reply to: query_vars filter doesn't work (?)maybe I have to create a new query variable?
Forum: Plugins
In reply to: query_vars filter doesn't work (?)ok…so everything works where I have printed the value on the page template….Great.
The next step is however including this code in my plugin which the page template uses on form submission. I have a feeling that the value in the wpquery is being reset or lost…
Forum: Plugins
In reply to: query_vars filter doesn't work (?)thank you very much stvwlf, I am loading the twentyTen theme but also including my own custom one. Can you tell me exactly where u placed the function in the Twentyten functions.php?
I apologise for the simple questions however I am new to all of this.
thanks
Forum: Plugins
In reply to: query_vars filter doesn't work (?)yeah…I think its just not registering for some strange reason.
The fact that is NULL means that I guess its not finding the query variable..
Im lost 🙁Forum: Plugins
In reply to: query_vars filter doesn't work (?)just a quick question should I declare $wp_query as global in the page template?
Forum: Plugins
In reply to: query_vars filter doesn't work (?)mmmm interesting…first of thank you very much for your help. Im a wordpress newbie.
I included <?php var_dump($wp_query->query_vars); ?> at the top of the template and getting NULL value
Forum: Plugins
In reply to: Get current page id in custom pluginThanks for your reply!
I did the followingfunction hook_ajax_register() { global $wp_query $thePostID = $wp_query->post->ID; $this->marketing_code = get_post_meta($thePostID, 'ReferenceID', true);However I am now getting a zero value?
any ideas?
Thanks again