David Wang
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Media Library empty – wp-content/uploads has imagesThe Media Library in WordPress doesn’t read the contents of
wp-content/uploads/
. Each image is actually an entry in the WordPress database containing info about the file, generated sizes, title, caption, etc.If you regenerated your site, I would guess that you did not properly migrate the database and the above info is missing. So while the images exist on your server and will load in your browser, they don’t exist in the database.
Unfortunately I think there’s not much you can do unless you are willing to restore the site to a previous backup.
Forum: Themes and Templates
In reply to: [Make] Move navigation out of headerThanks Ross and Corey!
Forum: Everything else WordPress
In reply to: Why are my forum posts not appearing..?Thank you! Both posts are visible now
Forum: Everything else WordPress
In reply to: Why are my forum posts not appearing..?Oh I see. Didn’t see a moderation message. Patience, I am..
Forum: Fixing WordPress
In reply to: Page specific CSSHi, if you want to print your stylesheet only on the homepage you can use
is_home()
insteadhttps://codex.www.ads-software.com/Function_Reference/is_home
Forum: Fixing WordPress
In reply to: Change existing theme?Hi, I see that you’re using the Fabric theme from StudioPress. That theme comes with 3 different color schemes e.g. https://demo.studiopress.com/fabric/colors/blue
You can change the color schemes from the Dashboard → Genesis, scroll down and locate the color schemes option box.
If that doesn’t work for you, you’ll need to edit the theme’s CSS to customize the fonts, colors, everything.
@FelipeOS I changed
loop_end
toloop_start
and that fixed it for me.Forum: Plugins
In reply to: [WooCommerce] Get product type (check is it "external") for further actionIt helped me today, thanks @helgatheviking!
Forum: Fixing WordPress
In reply to: WP in subdirectory… not workingYup it’s working for me too. Could have been a cache issue for sure. Glad it worked out for you! Btw, your URLs still have chaicoughski in them. Perhaps you want to update the menus.
Re: background updates, try this plugin to diagnose: https://www.ads-software.com/plugins/background-update-tester/
Forum: Fixing WordPress
In reply to: WP in subdirectory… not workingThat’s strange.. Could you be more specific about how it “doesn’t work”? Do you get an error message or something?
Forum: Fixing WordPress
In reply to: WP in subdirectory… not workingHi Ted, got your email and popped in to see your post. I think you made a mistake in Step 3. It should be
require('./chaicoughski/wp-blog-header.php');
because
chaicoughski
is the directory you installed WordPress in. Give it a try and see how it goes ??Forum: Fixing WordPress
In reply to: Targeting just the single pages of the blog not custom post typesDoesn’t it work if you just do this?
if ( get_post_type() == 'landing_pages' ) {}
That will only target landing_pages CPT single pages, not regular Post single pages
Forum: Fixing WordPress
In reply to: Targeting just the single pages of the blog not custom post typesDoes this mean you only want to target Posts, but not CPTs? You can also use
get_post_type()
for regular Posts.if ( get_post_type() == 'post' ) { // this code only runs for Posts }
Or combine them
if ( get_post_type() == 'post' || get_post_type() == 'book' ) { // this code only runs is the current post is a regular Post or Book CPT }
Hint: regular ‘ol Posts are a CPT too (“Posts” CPT)
Forum: Fixing WordPress
In reply to: Targeting just the single pages of the blog not custom post typesHi, you can use the get_post_type() function. e.g.
if ( get_post_type() == 'book' ) { ... }
Here’s a handy page to bookmark: https://codex.www.ads-software.com/Conditional_Tags
??
Forum: Plugins
In reply to: [Click to Copy Grab Box] Shortcode for Pages?I don’t have plans for this right now but I will take that as a feature request!