zebracrossing
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Category description : “some themes may show it.”@threadi
Sure, I will. Thanks, regards.Forum: Fixing WordPress
In reply to: Admin – Can’t see “EDIT HOME PAGE”I see it now after a trial-and-errror session.
Anyway, thanks for the educative answer.Forum: Fixing WordPress
In reply to: Why URLs stop working all of a sudden?@threadi
Ah, it didn’t occur to me! I overlooked it because, unlike in Classic Editor, it’s not visible right under the post title. Thanks aplenty.Forum: Fixing WordPress
In reply to: Why URLs stop working all of a sudden?Baffled. They are working now, but there is another issue.
Pls see https://zebracrossing.online/category/backend/
Titles of posts shown in browser address bar are weirdly different from actual article titles. They read “Service1”, “Service2”, “Service3”, etc.Btw, permalink is set to /%postname%/
Forum: Fixing WordPress
In reply to: Wesite practically deadFirst I removed cache, and the site worked. That’s when I reported the problem is resolved, but the problem is back. After that I made several changes. And now another problem. On a test site an Astra admin shows “Edit Home Page” but I can’t see it on my real site’s admin. I have posted the issue on Astra support. Thanks a lot for replying.
Forum: Plugins
In reply to: [WP Extended Search] Making “Search” work properlyChatGPT offered a solution.
It is unbelievable that WP itself or WP plugins can’t handle empty search inputs.Forum: Plugins
In reply to: [WP Extended Search] Making “Search” work properly@moderator
Sorry. The duplication is because I don’t know how to delete the post on the plugin page. The wording will show that one question is specific to a serach plugin, and the other is about WP-SEARCH in general. The latter is what I want to stand.Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr category@ayuvirgiana100
I unified the sub-categories under the category ‘blog’ as you suggested, and used the if ( is_category() code that I mentioned above. Now things work as I wanted it.
I am grateful to you for your time and kind encouragement.Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryWell, the last code worked, but only for moments.
I really can’t believe it.Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr category.single-post article.category-issues-top-down .entry-meta .author {
display: none !important;
}.single-post article.category-issues-001200 .entry-meta .author {
display: none !important;
}
BOTH ARE UNDER CATEGORY ‘BLOG’WHAT ABOUT THE FOLLOWING MODEL?
<?php
if ( is_category() ) {
// The current page is a category archive page
echo "This is a category archive page";
} else {
// The current page is not a category archive page
echo "This is not a category archive page";
}
?>- This reply was modified 1 year, 1 month ago by zebracrossing.
Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryI used a code that I used with an old theme.
It displays Byline only for Category.<?php
if( ! in_array( get_the_ID(), array( 4226, 2068, 2066, 2064, 2056, 2054, 2052, 5002, 7228 ), true ) ) { echo 'Curated by ' . get_the_author_meta('display_name'); }?>The numbers are Post Ids from other categories.
https://zebracrossing.online/7193/
In other category articles I manually added the Byline along with the text.
https://zebracrossing.online/2056/Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryI used a code that I used with an old theme.
It displays Byline only for Category.<?php
if( ! in_array( get_the_ID(), array( 4226, 2068, 2066, 2064, 2056, 2054, 2052, 5002, 7228 ), true ) ) {
echo 'Curated by ' . get_the_author_meta('display_name');
}
?>The numbers are Post Ids from other categories.
https://zebracrossing.online/7193/
In other category articles I manually added the Byline along with the text.
https://zebracrossing.online/2056/Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categorySadly it doesn’t work. Yes, I want “Curated by” only in Category Blog.
If category is Blog, add “curated by” in front of author name, with the author name not serving as a hyperlink (!Imporatant). In single pages of other categories, the author name alone will be necessary. If it requires so much time and effort, I will discard the theme and try another.
All this because my favorite theme is no more supported, although it has survived all the WP and PHP versions so far.
- This reply was modified 1 year, 1 month ago by zebracrossing.
Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr category@ayuvirgiana100
“Woah, long explanation!” I feel like I am punishing you πThe theme’s dashboard settings allows you to decide what should/shouldn’t appear in entry-meta (author, date, category, etc.). I think the relevant code in single.php pulls it wholly. If you remove it, the entire entry-meta disappears. Here is the code:
<div class="entry-meta aftertitle-meta"> <?php cryout_post_meta_hook(); ?> </div><!-- .entry-meta -->If I remove this and add your code, “Curated by AUTHOR” appears in single posts under all categories.
Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryI am sorry, I was trying another theme and that’s why you didn’t get the link.
Here is a single page link: https://zebracrossing.online/7193/Executing an “if category” code is the best solution for me, because I have to handle three divergent types of posts. But I know it’s a very complex procedure.