I created a post using WPBakery blocks and published it. It displayed perfectly until I changed the post permalink… For SEO reasons, I’ve decided to change the post url into a shorter one. When I updated the post and tried to preview and re-publish it, it displayed a 404 error…
I spent a lot of time to search for some similar problems on several forums but couldn’t find a solution… If you have any idea, please let me know !
Many thanks in advance!
]]>Everything is working fine except when I click on the name of the category, it goes to a page “/category/uncategorized/”
and it displays: “Nothing Found It seems we can’t find what you’re looking for. Perhaps searching can help.”
Is there any way I can make it so nothing happens when I click on the category (user has to click on a page under the category)
the site is https://jillestelle.net
PS I really like this theme so far!
thank you!
]]>I have been working with a client to migrate a site to a new host provider. I migrated the db manually, and have run into an issue I have never seen before.
When creating a new post – in the Permalink field, under “Enter title here” I see:
Permalink: ?preview=true
When I publish or save the draft, I receive: Sorry, you are not allowed to edit this post.
Also, on the posts, there is no preview button.
I was hoping someone might recognize this error and be able to point out where I screwed up.
Thx!
Chipleh
The only thing about the post I can see that is unusual is that the title that the permalink was generated from has punctuation in it – is this a factor? For example “Kennedy, James O’Connor” will lead to a slug of kennedy-james-oconnor which seems entirely reasonable. But in my case the post cannot be found with such a permalink/slug.
Since I can edit the post, I have tried editing it and updating, but that has not changed the link. How can I fix it?
]]>Me: I don’t understand anything about source code. I’m trying to use menus. I’ve searched the support forum for ideas, but I don’t understand the answers. I’ve tried out all kinds of different feed urls in the widget’s menu. I think I get that the individual posts have their own links created by wordpress. I’ve used the shortlink button to see them. But I can’t change them, like I can change the page permalinks. I like that the list of posts displays on the site with the page-name permalink. But how do I get the rss feed to work? I’d love the ‘for dummies’ version, if possible. Many thanks for any help.
]]>I found a code to be put inside the loop as follow:
<?php
if ( has_post_thumbnail()) {
echo '<a href="' . get_permalink($post->ID) . '" >';
the_post_thumbnail();
echo '</a>';
}
?>
The problem is: after I save, all my featured images are doubled. The top one links to post permalink, while the other is still showing the larger image when clicked, but it doesn’t matter, because I can’t have two featured images per post.
The page: daniloleonardi.com/blog
Thanks in advance!
]]><?php $postsdubbed = get_posts(array(
'numberposts' => -1,
'post_type' => 'post',
'category' => $catiddubbed,
'order' => ASC
)); ?>
<?php if($postsdubbed) {?>
<?php foreach($postsdubbed as $post)
{?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<hr>
<?php } ?>
<?php }?>
What this code actually does it doesn’t take the permalink/post title of the post that it’s actually working with at that point in time in the loop, instead it simply takes the permalink/post title of the post that i’m viewing this output from. It’s able to successfully figure out how many posts there are in that category or how many posts that fit the criteria, and it runs the loop that many times, so the output essentially repeats itself.
For example, if that code was put into a custom post type post using a conditional, it doesn’t pull out the posts / their permalinks from the category specified in the get_posts() function, instead it simply takes the permalink/post title of the custom post type post that i’m on and it’ll print it out.
So I think the the_title() and the_permalink() simply won’t work, maybe because it’s in single.php or something. Anyway, I was hoping I could get some type of replacements of these to be used in this loop.
or if someone could shine some light upon why this doesn’t work in the single.php file as it is intended to.
]]>