Check live- http://mylistoflists.com/9-football-season-snack-ideas/
Post content only visible when i logged with admin, due to my low knowledge on wordpress i am not sure how to fix that.
N: B: Post visibility set as PUBLIC!
Without Admin
With Admin
My guess is that your post is set to Private in the Post settings in the posts tab on your dashboard.
You have to click on edit and then choose public instead.
EDIT:
First Look at your trashcan. If there are posts with the same name it can conflict with the new post. Try to empty your trashcan.
Second: Are you using a cache plugin? Try to disable this and see if that fixes it.
Only Admin can see your code:
<?php if(current_user_can('administrator')): ?>
//put your code part only admin can see
<?php endif; ?>
your problem will solve with one these of solutions:
first check that post published in public mode.
if you have a cach plugin or any speed boost plugin, first deactive that plugin and see that problem resolved or not?
if above solution not work, then deactive all plugins of wordpress and check again,
and also if above solution not work, change your wordpress theme to default theme like twenty seveteen and check that problem solved or not
Deactivate "W3 Super Cache" Plugin or any cache Plugin. It works for me. Hopefully, it will work for you.
DELETE htaccess file, is the only 100% working solution.
Related
I have a WordPress page with a slug "blog" and I'm trying to delete it and create a new one with the same name, but even when I delete it, it still shows, i cleared the caches and i change the theme because I have a custom theme that i made to make sure it not a theme problem, but it still showing that page
What can I do?
Thanks!
Try these quick steps, I think that will 90% works.
First backup your website, There are a lot of plugins that can do that perfectly with one click.
Then reset your database, also there're a lot of plugins that can do that.
check if the page still exists.
If the problem is fixed then reinstall your theme, and use the backup file you made and you're all set!
Hope that helps!
I am currently viewing members details using author.php - it all works perfectly but i want to change the /author permalink to /member. Ive done this but it takes me to a 404 page now.
add_action('init','change_author_permalinks');
function change_author_permalinks()
{
global $wp_rewrite;
$wp_rewrite->author_base = 'member'; // Change 'member' to be the base URL you wish to use
$wp_rewrite->author_structure = '/' . $wp_rewrite->author_base. '/%author%';
}
Login and go to the dashboard.
Then go to Settings > Permalinks and save the page. That flushes the rewrite rules and should then take you to the correct page when entering the new URL.
You could also use flush_rewrite_rules() but you should use that function sparingly and only when you need to. Saving the Permalinks page is the easiest way to go so you're not flushing the cache constantly.
Great plugin: https://wordpress.org/plugins/edit-author-slug/
This plugin works great. but some things you can do without a plugin.
Here is a perfect solution without a plugin, check it out this article. It is working fine for me.
This plugin may help: https://wordpress.org/plugins/edit-author-slug/
I used on several sites and never had an issue ;)
Be sure to save your permalinks (Settings > Permalinks) after any slug update.
I actually just built a plugin to address this very issue. It allows you to change the author url to anything at all. It effectively changes the link shown on the posts, and also redirects any old author pages. Can be specified per user or globally.
https://wordpress.org/plugins/wp-custom-author-url/
Hope this helps!
I use Elementor page builder on my WordPress site. There is a problem with it - by default it doesn't allow editing WooCoomerce Shop/Products pages. The solution they say is to add to page templates code. I, being a beginner with no idea of coding, cannot figure out which file to add this code to and where in that file. I have been researching and trying to fix this myself for two weeks now, in vain. Please help me achieve this.
Here's what Elementor say: "Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page."
Go to Elementor setting and then check products in post types
Go to Products, click Edit on the product you want to edit, input something (ie. a full stop-sign '.') in the WP Editor, click Update. (See attached screenshot.)
Screenshot
There seems to be a misconception that Elementor can be used to "edit" any content.
For Elementor to work on a "Page" i.e. the post type that uses either the page.php or any theme declared page templates it requires the_content(); function to present in the code.
Issue #1: WooCommerce uses the woocommerce_content(); function to return the content of the shop.
Issue #2: The Shop output does not use the "Page" or Custom Page template - the output is equivalent to the index.php or home.php, neither of which are editable via Elementor.
Unless you are willing to write a pretty sophisticated function to collect all those elements' data and filter them into the_content(); function, there is currently no way of editing such content directly.
I know it's not the solution you are looking for but that is the current state of affairs. Having said that, some of us are working on all sorts of solutions and maybe, just maybe - we'll come up with a way to have this option available soon ;)
For shop page you should go to Elementor setting and then check products in post types.
Because shop page products are not the content but posts it's the solution.
So inlcude products in post types and edit with elmentor, if for some reason you can't see 'edit with elementor' under shop page, then just open shop page and add
/?elementor and it would enable elementor
NO need to add this code in any page follow these instruction.
You just need to clear cache and cookies your browser, Some time website take previous data to show the web page and give this error.
or
if you open your website private mode then login and go to the page by Elementor you will never face this problem.
I'm working on rebuilding a friends website however cannot get the wordpress comments to show up on posts, I have tried disabling all plugins, switching themes (even default themes) but the comments still do not show up.
This is the first time I've worked on a wordpress site and all the posts I can see from people with the same issue resolved it either by disabling plugins or switching themes (usually issues with single.php which the theme I'm using does not have that file).
Any ideas?
URL for the site
Looks like there are no comments on that site, the "Comments feed" is empty: http://happybody.co.nz/comments/feed/
Have you checked SETTINGS > DISCUSSIONS > Allow people to post comments on new articles - or any of the other Comments Settings there?
In the file sigle-post.php or like some Think similar in the theme folder, find the function get_post_commets($post->ID) and delete.
May be exist an foreach to show a result of the function one by one.
Get lucky.
Find get_post_comments() function ... In wordpress site support.
So I've just figured out why the comments section does not show up, when I recreated all the posts from a cached copy of the site from archive.org/web I never ticked the box on each post under "discussion" for "allow comments".
Im using a plugin that add comments to iframes that isn't responsive, so I would like to turn off the plugin in mobile view. How do I target the plugin for that? when I googled around this seemed to be the answer, but not sure how to target my plugin.
if (!wp_is_mobile()) {
}
I don't think disabling the plugin would be a solution in your case, because plugins are not customized to enabled and disabled for specific view.
Better idea would be to create a function in your function.php file and fire it when comment is loaded and just ignore when user is viewing in mobile else load the comments in iframe.
Can't proceed further with your given information.