Walton
Forum Replies Created
-
Forum: Reviews
In reply to: [Gutenberg] WordPress Gives Zero FsAs of right now, and I have screenshots: 1+ million Active Installations of Classic Editor. 300,000 Active Installations of Gutenberg. What does that tell you?
Forum: Fixing WordPress
In reply to: Can’t access backendThe more I dug, the more things got messed up so I just did a fresh install! A few things I’d be meaning to do anyway, so it’s all good!
Forum: Fixing WordPress
In reply to: Can’t access backendThanks, umashanker. Unfortunately, I am seeing different error codes. But I did try deactivating my plugin folder, which had no effect.
I also switched to PHP 7.0 from 7.2. Now the PHP warning is gone, but I still have a weird theme, none of my plugins are working, and I can’t access the backend
- This reply was modified 6 years, 8 months ago by Walton.
Forum: Fixing WordPress
In reply to: Weird Requests from :343Brilliant. Thanks.
Forum: Fixing WordPress
In reply to: Weird Requests from :343Any way to track these things down?
It also appears something on my site is requesting files from my /testsite/ domain, But I can’t find any reference to my testsite domain in the plugins, themefiles, or database!
This is driving me nuts. It takes 12481 ms to first byte from the server because of these weird requests.
Forum: Plugins
In reply to: [WooCommerce] All Images disappeared from homepageIn case it happens to anyone else, it was JetPack, specifically the “Lazy load images” setting. Glad that’s sorted. Thanks.
Forum: Plugins
In reply to: [W3 Total Cache] Disabled WTC Plugin, now my page is unformattedI just realized only my homepage is lacking formatting. The individual posts and pages are fine for the most part. However, many of my recent images are not showing on the home page, or the posts. They also don’t show up in the media library. However, if I go to edit image, I can see the images there!
Forum: Fixing WordPress
In reply to: Admin URL redirects to uploadYeah, deleting that entry from the htaccess file worked. Just not sure how the htaccess file got changed in the first place. But thanks for the help!
Forum: Fixing WordPress
In reply to: Admin URL redirects to uploadIt seems a redirect was added to my .htaccess file. I don’t know how that happened–I haven’t changed it in a long time. I wonder if the WT3 Cache plugin can rewrite .htaccess files.
Forum: Plugins
In reply to: [Coming Soon / Maintenance mode Ready!] Not WorkingqI’m trying to find Debug mode–there’s disable, coming soon, maintenance, and redirect.
Forum: Plugins
In reply to: [Easy Maintenance Mode] Cannot add Background ImagesI have the same issue. My site URL is https://www.englishadvantage.info. However, I am not currently using Maintenance Mode.
Forum: Themes and Templates
In reply to: [Ridizain] Add Custom Post Types to Featured Post AreaI made a child theme and added this code to the functions.php file
<?php //Add Custom Post Types function awesome_2014_get_featured_posts( $posts ){ $fc_options = (array) get_option( 'featured-content' ); if ( $fc_options ) { $tag_name = $fc_options['tag-name']; } else { $tag_name = 'best'; } $layout = get_theme_mod( 'featured_content_layout' ); $max_posts = get_theme_mod( 'num_posts_' . $layout, 2 ); $args = array( 'tag' => $tag_name, 'posts_per_page' => $max_posts, 'order_by' => 'post_date', 'order' => 'DESC', 'post_status' => 'publish', 'post_type' => 'tc_lessonplan', ); $new_post_array = get_posts( $args ); if ( count($new_post_array) > 0 ) { return $new_post_array; } else { return $posts; } } add_filter( 'twentyfourteen_get_featured_posts', 'awesome_2014_get_featured_posts', 999, 1 ); ?>
Ah ha—I see it now. Changing the last line from twentyfourteen_get_featured_posts to ridizain_get_featured_posts works perfectly.
I see that this function adds a lot of the stuff that you added to 2014 in terms of post limits. If I strip it down to:
function awesome_2014_get_featured_posts( $posts ) $args = array( 'post_type' => 'tc_lessonplan', ); $new_post_array = get_posts( $args ); if ( count($new_post_array) > 0 ) { return $new_post_array; } else { return $posts; } } add_filter( 'twentyfourteen_get_featured_posts', 'awesome_2014_get_featured_posts', 999, 1 );
does that do it? I am a fan on minimizing code.
The theme is awesome by the way. I really want this to work so I can feature my lesson plans!
Forum: Plugins
In reply to: WP-Minify does not play nice with WordPress 3.8Fair enough. Thought this might help other people trying to guess which plugin is messing things up so they don’t do like I did and go through all the others first. Alphabetically, WP-Minify is my last plugin!
Forum: Hacks
In reply to: One set of custom meta fields not showing in postIt was almost easier. Going through adding the error log code, I discovered that I never called for the materials values in the lesson plan! I never did get_post_custom.
Thanks for the step that got me there!
Forum: Hacks
In reply to: One set of custom meta fields not showing in postOops. I did fix that. But it’s still not working. And yes materials1, materislas2 and materials3 are all defined. Every time I load the Edit Lesson Page, they are populated. I don’t get it.