zebracrossing
Forum Replies Created
-
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 10 months, 2 weeks 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 10 months, 2 weeks 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.
Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr category.category-blog .entry-meta .author,
.single-post .category-blog .entry-meta .author {
display: none !important;
}
Author still appears on single page!Would it be easier if we add “Curated by” in front of the Author in single post, in which case we only have do deal with single posts?
(example: “Curated by John Doe)Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryP.P.S. Now Author name has vanished from all categories.
Something tricky is here.Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr categoryP.S. To that code I added:
.category-blog .single-post, .entry-meta .author {
display: none;
}Looks like it works now.
Forum: Fixing WordPress
In reply to: Not displaying Author’s name in one particulalr category@threadi
Thanks a lot for the fast reply.
It worked 🙂 But there is one problem. Single posts still show author name.- This reply was modified 10 months, 2 weeks ago by zebracrossing.