Chad
Forum Replies Created
-
Forum: Hacks
In reply to: how to make featured image loaded through external linkThere are a handful of plugins that may help with this ??
Forum: Hacks
In reply to: Reverse Order of Custom Post Type EventsSounds like it must be, I’ve just seen rogue instances of that filter cause problems in the past, so I like to check it first.
This is just a rough idea, I’d have to set up some data to test it, but it looks like the initial
$eventArray
is being built in reverse – starting with December and working backwards to the current month.Maybe try building it starting with the current month and moving up to December instead?
$eventArray = array(); $currentMonth = date('n'); $currentYear = date('Y'); //Generate our months from the system time. for ($i = $currentMonth; $i <= 12; $i++) { $monthName = date('F', mktime(0, 0, 0, $i, 10)); // March $eventArray[$monthName] = array(); }
Again, this is untested so I don’t know how it will play with the rest of your code, but it does reverse the original order of the event array. Maybe that’s a good starting point ??
Forum: Fixing WordPress
In reply to: How do I Adjust opacity of Header on All pages?Glad I could help ??
Forum: Fixing WordPress
In reply to: How do I Adjust opacity of Header on All pages?Try adding
.site-header { position: absolute; }
That should allow the content area to shift up behind the header area, as opposed to sitting below it.
There’s a style that already does this on the homepage, adding the style above should affect the other pages as well ??
Forum: Fixing WordPress
In reply to: How do I Adjust opacity of Header on All pages?The link I posted above will explain all about Child Themes. Setting one up is easy ??
Can you add a link to your site so I can see what it looks like? I’m assuming you’re also using the Tesseract theme?
Forum: Themes and Templates
In reply to: Help with theme customization issueAwesome! Glad it’s fixed ??
If you want to clean up the code a little more, you should be able to eliminate that
div
entirely, since it’s both empty, and a duplicate ID.And I’ll definitely let you know next time I’m up near Buffalo ??
Forum: Themes and Templates
In reply to: Help with theme customization issueHi!
Dug through the source code of the problem page and found an HTML tag mismatch.
<div id="Content-sidebar" class="secondary">
Was on line 654 (of the HTML, it’ll be a different spot in your template file).It didn’t have a closing tag, so it was throwing off the whole page. Removing that line should make a huge difference.
When you look for it, find the second reference to that ID. There’s also another duplicate, empty
<div>
just below it named ‘content-sidebar
‘. I don’t think that one is hurting anything, but it can probably also be removed.Good luck! ??
Forum: Hacks
In reply to: Reverse Order of Custom Post Type EventsStart by deactivating all of your plugins, see if any of them are impacting the display order.
If that doesn’t help, search your functions.php file for the phrase
pre_get_posts
. There could be something there that is reordering things but not targeting specific queries.Forum: Fixing WordPress
In reply to: Text not showing on Firefox and IEJust looked around your site in Firefox and IE – both looked good. Is there a specific page that’s giving you trouble?
Forum: Fixing WordPress
In reply to: How do I Adjust opacity of Header on All pages?Hi Rudi
Sorry for the delay in getting back to you.
I’d recommend adding this into section “Header Area” section of the stylesheet (
style.css
), to keep it nice and organized.Of course, you’ll want to make sure you’re using a Child Theme so you don’t loose your changes in an update.
Forum: Networking WordPress
In reply to: Multisite WP is not allowing me to add more sitesNo worries, I hope get everything sorted with your host. ??
Forum: Fixing WordPress
In reply to: floatting vertical side barI don’t know of any plugins for that specific purpose, but if you’re comfortable with CSS, setting the sidebar to
position:fixed
will allow it to remain in place when scrolling.Forum: Fixing WordPress
In reply to: Show only Testimonial's categoryNot sure if I understand your question – but all categories will be available under this custom post type because you’ve specified ‘category’ under ‘taxonomies’
Perhaps you want to consider creating a custom taxonomy to along with this post type?
Forum: Fixing WordPress
In reply to: WP_Query – Problem with Output. Am I Dumb? ;-)Not sure if this is what’s actually causing the problem, but I think you’re missing an opening quote around your source:
function srview_func ($atts) { $output = ''; $terms = get_terms( 'klasse', 'orderby=slug&hide_empty=0&order=DESC' ); foreach($terms as $term){ $output .= '<h3>' . $term->name . '</h3>'; $zposts = new WP_Query(array( 'post_type' => 'my_custom_posttype', 'posts_per_page' => -1, 'klasse' => $term, 'meta_key' => 'timestamp', 'orderby' => 'meta_value_num', 'order' => 'ASC', ) ); if ( $zposts -> have_posts() ) { while ( $zposts -> have_posts() ) { $zposts -> the_post(); $output .= '<img src="'. get_post_meta(get_the_id(), 'meta-image', true) .'" alt="' . get_post_meta(get_the_id(), 'NameInput') . '">'; } } } return $output; }
PS and no, you’re not dumb ??
Forum: Fixing WordPress
In reply to: Fav icon doesn't appear on my 404 pageHm. Can you share the code from your
functions.php
file that calls the favicon?And maybe a link that to your site (so I can see the custom 404 page)?