Andrew Mills
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: A lot of WP_Query on home page.It sounds like the number of if openings and closings are mismatched, one too many closings, if I’m not mistaken.
(You may have already fixed this, though, and I’m just late in responding. If not, could you post the code so I can see it?)
As far as the rewind_posts issue, what output are you seeing or not seeing?
Forum: Fixing WordPress
In reply to: Multiple SQL queriesI believe the proper syntax is:
. . . WHERE meta_key IN ('metakey1', 'metakey2', etc.)
However, I think it’s a bad idea to bypass the provided WordPress API methods (e.g. delete_post_meta, etc.) and manipulate database table directly through SQL. The WordPress function might handle details, such as current post vs. previous revisions of the post, that you may have not necessarily considered, for example.
Also, if a future version of WordPress changes how meta-keys are stored in the database, the related WordPress API functions will be updated accordingly– but your bypass code would not be. So you save yourself future maintenance headaches by sticking to the WordPress function.
Forum: Fixing WordPress
In reply to: 5.3 to 5.4 Sever Change and Resulting CarnageGreetings, Paul
I’m inferring from your post these are likely business sites, and not personal/hobby sites. Correct?
Depending on the number of sites involved and the urgency/time sensitive nature of getting them repaired, you might consider hiring professional assistance.
Forum: Themes and Templates
In reply to: [Quark] Quark child themeYour child theme must have its own style.css file; it’s required in order to work.
Forum: Fixing WordPress
In reply to: A lot of WP_Query on home page.Yes, it will look something like that. You might have HTML in between each category (divs, for example) to handle layout, but that’s the basic idea.
Test it out first on a separate page/template, just to be safe, of course. But based on what I can see, I think that will work.
Forum: Fixing WordPress
In reply to: A lot of WP_Query on home page.I think there’s another way you could get the same result.
One wp_query. Multiple loops, each filtering by category. Rewind posts in between loops.
Start with a WP_Query that retrieves posts from the categories that you want:
$query = new WP_Query( 'cat=3,6,17,38' );
And then filter the results based on category with your individual have posts/while have posts loops?
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- See if the current post is in category 3. --> <?php if ( in_category('3') ) { ?> <!-- and then do your output --> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> </div> <?php } ?>
And then use rewind_posts to jump back to the start of the query results, and just change the category you test for to 6 on the next loop, 17 on the loop after that, and so on.
Forum: Networking WordPress
In reply to: Multisite won't workI’m guessing it is because you are using port 8888 in your URL.
Per the WordPress Codex, “Before You Create A Network” page:
You cannot create a network in the following cases:
“WordPress address (URL)” uses a port number other than ‘:80’, ‘:443’.
Can you change the port to either 80 or 443?
Forum: Fixing WordPress
In reply to: Unwanted italics showing up on homepage titles and categoriesUnderstood. I’m curious– why are you using
<i>
instead of<em>
?Forum: Fixing WordPress
In reply to: Unwanted italics showing up on homepage titles and categoriesGood morning, Nick
It looks like you took my advice about the styling of the italics tag, and you’ve figured out how to get three slides displaying in your slider.
Does that mean this thread is now resolved? If so, could I ask you to please mark it as resolved as a favor, please.
Forum: Fixing WordPress
In reply to: Images Not Showing On Blog Anymore; Only Caption ShowsThe “old” images are still there, but something is setting them to 1 pixel x 1 pixel. Very strange.
Have you tried disabling all your plugins temporarily, to see if it might be a plugin causing this issue?
Forum: Fixing WordPress
In reply to: Unwanted italics showing up on homepage titles and categoriesYour HTML has 22 <i> tags in it, presently, but I cannot see what might be generating them. I’m assuming these are dynamically generated, and you don’t know what’s creating them.
One option is to change the css for the italics tag, like so:
i { font-style: normal; }
As far as the slider issue, you might try some of the suggestions in this other thread that I’ve linked.
Forum: Plugins
In reply to: [Ajax Event Calendar] Not showing up on front endJust following up– were you able to try disabling plugins, testing with the TwentyTwelve theme?
Forum: Fixing WordPress
In reply to: WordPress 3.6. Now, the visual editor has no iconsJust following up– were you able to change your theme to TwentyTwelve, and if so, did the visual editor work?
Forum: Fixing WordPress
In reply to: No more log-inJust following up– were you able to turn on debugging, Marco Butz? If so, what messages did you see?
Forum: Networking WordPress
In reply to: Setting SMTP Options Network WideGreetings, Chaplain Doug
I can’t personally vouch for it because I’m not running a Multisite presently, but have you seen this wp-multisite-smtp plugin over at GitHub?