Forum Replies Created
-
@Kenneth – thank you. So I got the basics working using a widget called flexipages which can be easily dropped into an action hook. I ran into the issue, however, I am thinking that I shouldn’t be doing this as pages, but as part of the taxonomy. Basically, I am thinking I need to create a global variable, say $Current_City. I would then have a drop down box that would display $Current_City. Upon Clicking the Dropdown box (maybe using javscript if I must), there would then be a choice between Boston, New York. Whatever was chosen would be entered into $Current_City. I wouldn’t have a Boston or New York page at all, but just include $Current_City in the taxonomy search of the database for what comes up. I think this would allow a two factor search so that, say, I wanted someone to see, say, hotels in Boston when Boston was in the dropdown and they clicked the Hotels Menu, a list would come up showing only hotels in Boston.
So I have the concept in my head, but no idea on how to go about programming it. Any thoughts? Plugins or code out there that would help?
Thanks!
Super sorry. Realized that it was caused by my browser being zoomed out one notch.
Sorry.
Sorry about posting in the wrong place.
Yeah, I know I messed that part up. I updated wordpress first and tabs broke so I updated graphene right away which seemed to fix it. I was focused on that so don’t recall i f this issue existed inbetween.
Ok, so it mostly seems to be working right now except the admin bar is still word wrapping. The “New” after “+New” is wrapping to a new line and the “SEO” before the dot (Yoast SEO) is wrapping to the next line. This occurs without the background growing around the wrap.
So far I have found it occurring on chrome but not IE
Is there a way to PM you a user id and password if you wanted to look at it? Non-users don’t get the admin bar.
This is no longer an emergency (only can be seen by some users), so you can change the subject line.
Thank you!!
I was confused since I already had the following, but I am guessing some script names may have changed or something. Anyway, I replaced the following with your new code and it works perfect.
function graphene_enqueue_scripts_custom(){
wp_enqueue_script( 'jquery-tools' );
}
add_action('init', 'graphene_enqueue_scripts_custom');Thanks, that worked perfectly!
No
I just added references to jquery tool’s (if you seach for the word “flowplayer” in my source code you will find the reference).
It worked fine before I upgraded.
Sorry.
Any ideas?
In reply to: Need Help — got cute with child functions and messed up my RSS
December 23, 2011 at 8:07 am #21595I haven’t installed widget logic yet, but I am not sure at this point how it will help. Your reminder about the conditional tags led me to fix the code and now it seems fines.
Noes the simple is_category() call in the code below. It seems to fix the rss feed and ads showing up in the dashboard. Can’t believe I didn’t do this earlier.
function insert_between_posts1( $post ) {
global $wp_query;
// Make sure it is a category page
if ( True != is_category())
return;
// Make sure it is not the Points Blog
if ( is_category(3))
return;
// Check if we're at the right position
if ( 1 != $wp_query->current_post )
return;
// Display the banner
?><div class="post adsense_single"><?php
echo adrotate_group(1);
?></div><?php
}
add_action( 'the_post', 'insert_between_posts1' );In reply to: Need Help — got cute with child functions and messed up my RSS
December 22, 2011 at 10:58 pm #21593All category pages but one (i.e., I don’t want it to show in category 3 as shown in the code). The front page (http://bit.ly/uE0ROy) is static. Effectively I am using the category concept to have multiple separate blogs run on a single wordpress site. This otherwise is working well for me. Example of a category blog roll on my site (http://bit.ly/rMsk7I).
In reply to: Need Help — got cute with child functions and messed up my RSS
December 22, 2011 at 6:57 pm #21591Josh: Thanks, I think I used the apostrophe instead of the backtick.
So I went back and just include my old code for the single pages (the top “paragraph” of code) and not the blog rolls and everything seems to work just fine. Prasana, you site (and i assume “graphene_post_footer”) would just have the ad on the single pages?
So, let me clarify my ask since I guess it only needs to be relevant to the blog rolls. Basically, I am trying to put ads inbetween every three posts except for a certain category.
Here is a blow up of one:
function insert_between_posts1( $post ) {
global $wp_query;
// Make sure it is not the Points Blog
if ( is_category(3))
return;
// Check if we're at the right position
if ( 1 != $wp_query->current_post )
return;
// Display the banner
?><div class="post adsense_single"><?php
echo adrotate_group(1);
?></div><?php
}
add_action( 'the_post', 'insert_between_posts1' );Could I fix this simply by using a different hook than “the_post”?
