Overflow
Forum Replies Created
-
Forum: Hacks
In reply to: is_tree not working as expectedOk, good points.
So When I do complex templates with multiple queries and then I get down to the footer and want to check which page i’m on (to show an appropriate logo), how should I reset the query, and get the postdata correct so that is_tree works as expected?
Still not compatible. Are you saying the minified version is the problem?
Uncaught TypeError: Cannot call method 'keyup' of undefined wp-seo-metabox.min.js?ver=1.5.2.1:1Forum: Plugins
In reply to: [Ambrosite Next/Previous Post Link Plus] Possible bug on the "loop" parameterOk, I got rid of ‘in_same_cat’, no luck.
Then I tried to set a variable to find the term using
if (has_term('k-12-education','categories')) {$projDetails = "pro-det-k-12-single"; $myTax = 'k-12-education';}
ect…ect…Then I put the variable in the ‘in_same_tax’ but it didn’t like that because I’m assuming that it’s supposed to receive only a True/False? When I did, I got this error.
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/bwwnet/public_html/optima/wp-content/plugins/next-post-plus/ambrosite-post-link-plus.php on line 114
Thanks for the help so far. Hope we can figure this out.
Forum: Plugins
In reply to: [Ambrosite Next/Previous Post Link Plus] Possible bug on the "loop" parameterThanks. I’ve tried to play around with a few parameters, but this is the current version. (Some are commented out)
<?php next_post_link_plus( array( 'order_by' => 'post_date', /*'order_2nd' => 'post_date',*/ 'meta_key' => '', 'post_type' => '', 'loop' => true, 'end_post' => false, 'thumb' => false, 'max_length' => 0, 'format' => '%link »', 'link' => 'Next Project', 'date_format' => '', 'tooltip' => '%title', 'in_same_cat' => true, 'in_same_tax' => true, /*'in_same_format' => false, 'in_same_author' => false, 'in_same_meta' => false,*/ 'ex_cats' => '', /*'ex_cats_method' => 'weak',*/ 'in_cats' => '', 'ex_posts' => '', 'in_posts' => '', 'before' => '', 'after' => '', 'num_results' => 1, 'return' => '' ) ); ?>Forum: Fixing WordPress
In reply to: How to move the blog from subfolder to root?Weird, I thought I replied to this.
http://codex.wordpress.org/Moving_WordPress
All you have to do is move the main index.php file into the root, change the path name in that file to include the blog subdirectory. Then in Settings general, change the site address so that it does not include the blog directory.
Forum: Fixing WordPress
In reply to: How to Make Submenu Show Only in Certain Page<?php if(is_page('our-work')) { ?> Show me the menu <?php } else { ?> Don't show me the menu <?php } ?>Forum: Plugins
In reply to: [jQuery Colorbox] Colorbox doesn't display titlesThis solution works for me. Since the upgrade to 3.7, the answer slowly made it’s way out. Simply put this function into your functions file and you’ll have titles again.
function my_get_attachment_link_filter( $content,$id ) { $title = get_the_title($id); $new_content = str_replace('<a ', '<a title="' . esc_attr($title) . '" ', $content); return $new_content; } add_filter('wp_get_attachment_link', 'my_get_attachment_link_filter', 10, 4);Forum: Plugins
In reply to: [jQuery Colorbox] Colorbox doesn't display titles@esmi, This is my topic.
I’d thought I’d give the developer more info on the subject. You know, also in the Forum Welcome, “SEARCH FIRST:” – “Many of the questions that are posted in the forums have been posted many times before, and get the same answers each time. Before starting a new thread, please try searching the forums.”
Forum: Plugins
In reply to: [jQuery Colorbox] Colorbox doesn't display titlesYes, bump.
This has happened since the 3.7 WordPress upgrade.
Changing the jquery version doesn’t help either.
Actually effects all Color Box based plugins.Forum: Fixing WordPress
In reply to: Trying to get a certain look for my "recent posts"You could create a 1-5px vertical gradient in a image program and set that as a background image then set it to repeat-x. Then your code would look like this:
.rpwe-block li { border-bottom: 1px solid #eee; margin-bottom: 10px; padding-bottom: 10px; background-image: url(images/my-gradient.png); background-repeat:repeat-x; background-position:bottom; }Forum: Fixing WordPress
In reply to: Trying to get a certain look for my "recent posts"Find this in your style.css
.rpwe-block li { border-bottom: 1px solid #eee; margin-bottom: 10px; padding-bottom: 10px; }And replace it with this:
.rpwe-block li { border: 1px solid #999; margin-bottom: 10px; padding: 10px; background-color: #ccc; }Forum: Fixing WordPress
In reply to: Menu not working on Mobile SiteTo your original problem of not getting the navigation.js included, you need to first make sure it’s in your theme’s folder. Probably in your “js” folder in your theme. If it’s not, you can just grab it from the 2012 theme. Then open up your functions.php file in your theme.
In the 2012 theme, the js gets added on line 103:
/* * Adds JavaScript for handling the navigation menu hide-and-show behavior. */ wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );Make sure that is in there.
Forum: Fixing WordPress
In reply to: Problems with importing, SQL bugI’m going to jump on this post too because I’ve had this problem lately. I’m moved a lot of sites the way you’re doing it and just recently I’ve been getting this error.
My solution was to go to the servers automatic backups they provide instead of exporting from myphpadmin. The support for my hosting swears that there shouldn’t be any difference, but obviously there is. Hopefully you have access to these backups.
Forum: Fixing WordPress
In reply to: Menu not working on Mobile SiteDoesn’t look like the “navigation.js” located in the 2012 theme/js/ is getting loaded. That’s what gets your h3 menu button to work on responsive mobile.
Forum: Fixing WordPress
In reply to: Linking to an authorTry this from the 2013 theme:
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentythirteen' ), get_the_author() ); ?> </a>Then go to your admin > users > edit > Choose, “Display publicly as” to choose who the Author’s name is displayed.