John Parris
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to fix the WordPress White ScreenNo problem. Glad to help. Good luck.
Forum: Fixing WordPress
In reply to: How to fix the WordPress White ScreenThat shouldn’t cause a white screen.
At this point you should probably contact your hosting company. Without being able to debug what’s going on under the hood, I don’t have any other suggestions at this time.
Forum: Plugins
In reply to: Translation of dates, days, and other front end stuffEditing core WP files isn’t recommended, as you lose your translations when updating in the future. Have you considered creating an official Cornish translation? I’m sure the translation folks would love to have you! https://make.ww.wp.xz.cn/polyglots/handbook/about/get-involved/
Forum: Fixing WordPress
In reply to: How to fix the WordPress White ScreenIt’s possible you have more going on under the hood than we can determine here. Did you try going directly to /wp-admin when the theme folder was renamed? Do you have the default WordPress Twenty Fifteen theme in your folder?
Either way, since the theme thing didn’t work, I’d try the following:
Rename the folders of any plugins you have active, so that WordPress deactivates them. Then try going directly to /wp-admin and try to login.
Forum: Fixing WordPress
In reply to: How to fix the WordPress White ScreenI don’t see a white screen at wp-login.php like you mentioned. http://cl.ly/image/0K3e183B0q2v
But, normally themes don’t load on the login page like that, so I’m guessing you have a theme issue. You can test that by renaming your theme folder using FTP or your hosting panel, and letting WP fall back to the default theme.
Forum: Fixing WordPress
In reply to: How to fix the WordPress White ScreenDo you see any errors in the debug.log file inside your wp-content directory?
So the content doesn’t show in the page editor or on the front end? It makes no sense for the content to not show in the back end, unless there’s some plugin or theme conflict. When I suggested to temporarily deactivate the plugins, I meant to check it while they’re all deactivated. Did you try that?
Forum: Fixing WordPress
In reply to: Adding a page as a child of a categoryIf you set it up as a post, you can have the URL structure contain the category by going to Settings > Permalinks and setting the custom structure to
%category%/%postname%/.Doing this though, you’ll want to only assign posts to one category to ensure the correct one gets used.
But, you’re left with the issue of using a specific template for that particular post. You can do this with a bit of custom code.
First, you need the post ID of this special post. You can get that by editing the post in the admin and looking at the post ID in the URL. http://cl.ly/image/0i1e3n0T293t Note the
post=744. In this case, my post ID is 744.Armed with this, you can create a template that’s made especially for that post. Normally a single post is displayed by the single.php template file. If you have another template, make a copy of it and name it single-744.php (replace 744 with your post ID).
Use this code to override the template for that special post.
function jp_single_template_id( $located_template ) { $single_template = locate_template( array( sprintf( "single-%d.php", absint( get_the_ID() ) ), $located_template ) ); if( ! empty( $single_template ) ) { return $single_template; } else { return $located_template; } } add_filter( 'single_template', 'jp_single_template_id' );This code will load that template for just that post, and fallback to the default template for all other posts.
Forum: Hacks
In reply to: Custom Post Type placed in Category – Using pre_get_posts causes problemsSee if is_main_query will do it for you. https://codex.ww.wp.xz.cn/Function_Reference/is_main_query
Forum: Fixing WordPress
In reply to: Page/2/ not working on static pageTry setting ‘paged’ this way:
if ( get_query_var( 'paged' ) ) : $paged = get_query_var( 'paged' ); elseif ( get_query_var( 'page' ) ) : $paged = get_query_var( 'page' ); else : $paged = 1; endif;Also, as noted in the documentation, query_posts is not meant to be used like this. https://codex.ww.wp.xz.cn/Function_Reference/query_posts
See WP_Query instead. https://codex.ww.wp.xz.cn/Class_Reference/WP_Query
Forum: Fixing WordPress
In reply to: Filtering / refining postsCheck out the Query Multiple Taxonomies plugin, or some of the alternative plugins listed on that page. https://ww.wp.xz.cn/plugins/query-multiple-taxonomies/
Forum: Fixing WordPress
In reply to: Newb question — How do I make my site do this?You can do something like this using the Connections Business Directory plugin.
https://ww.wp.xz.cn/plugins/connections/Forum: Fixing WordPress
In reply to: WordPress black bar stays on for guestsDo you have any caching plugins installed? It could be that.
If not, you could try narrowing it down by temporarily deactivating all your plugins and see if it goes away. If not, try switching themes.
Forum: Fixing WordPress
In reply to: Adding a page as a child of a categoryHi,
Pages can’t be assigned to categories by default. Posts can.
So, if you’re using pages, you set up a parent page called, for example, Checkout. Then you create another page and set the Parent page in the Page Attributes box. http://cl.ly/image/13400V3s3P0M
This would give you a URL of /checkout/pagename.
Forum: Plugins
In reply to: Setting Up Subscription for SiteHi, I don’t know much about aMember Pro, but if you decide to leave that platform, you may find the following works.
Easy Digital Downloads
https://ww.wp.xz.cn/plugins/easy-digital-downloads/Easy Digital Downloads – Content Restriction extension (paid)
https://easydigitaldownloads.com/extensions/content-restriction/– or –
Restrict Content Pro
https://pippinsplugins.com/products/restrict-content-pro/