It’s possible to do, but would take hacking up the theme. One convention I’ve seen is to create a user with a generic name, like Guest, or the name of your site.
If you would still like to hack away. Then put a condition around the line\s in the template that displays the author like so:
<?php if (get_the_author() != 'none') : ?>
<?php the_author(); ?>
<?php endif; ?>
or alternately, the shorthand…
<?php echo (get_the_author() != 'none') ? get_the_author() : ''; ?>
Then you define an author named ‘none’.
The post will only display the author’s name if the name isn’t ‘none’.
Related Posts:
- How to add posts to custom menus?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- How to: Update live sites theme from version control repo via plugin or library? [closed]
- Adding items to page template dropdown on Page Edit Screen
- How to use logout function on custom menu link?
- Hide certain pages / posts on wp-admin, show custom filter
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Front End Post Submit Form
- Page attribute template dropdown not displayed even the syntax is correct
- How to add a text widget during theme activation
- WordPress Theme customisation CSS
- Displaying wp menus by name without using theme locations
- Why does this loop only work on the homepage?
- Nesting Functions within Functions
- Theme check: Missing a text-domain
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- Do I really need the div class entry?
- How to determine if post has widget content?
- Custom Script Section Only Echoes Text
- Best way to start becoming a wordpress developer
- Why wp_head() function not loading style.css?
- WP Customize refresh problem
- Set multiple templates per post
- Place the page title into the short code
- Redirect Old .php URLs to New WordPress Page
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- Displaying recent post excerpts on static front page
- approach to pass additional parameter in post URL
- Which html elements should be styled in wordpress theme
- Custom form in theme template displaying internal server error upon submission
- WordPress Media Uploader in page template (On Front-end)
- Theme Customizer not loading JS for live preview
- Replace function in a child theme
- get_search_form() and aria_label
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Admin: sub menu doesnt display under apperance when activate my themes
- Get data from style.css file and from from users->your profile
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- How can I specify that an area of my theme contains widgets?
- How to dequeue css files?
- How to disable thumbnail filter for a specific template part or image size?
- Extract all shortcode data from post into loop variables?
- wp_nav_menu and its fallback
- Adding the_content() return warning count()
- Copying the theme style files and images to duplicate the website but with a difference
- reduce duplicate code in wordpress
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Ajax call returns 0 when add_action is inside a class in functions.php
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- Is it possible to have a Theme with built-in physical page files?
- header, stylesheet not being read
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- iPad WordPress theme?
- Adding link post format to theme and permalink to rss feed
- How to know if I am on 1st page
- Archives and Categories in Custom Menu
- How to create a robust and logic class naming system in WordPress theme developing?
- How to render block editor in wp-admin custom pages programmatically
- Fetch data from database with dropdown selected option
- How do I keep my iframes responsive and scaled to fit their container?
- I don’t know why categories are showing below post
- Let user publish posts on community page
- Need help with adding custom wordpress menu and sub-menu
- get currently showed author ID in theme functions.php
- WordPress Custom font not found
- How do I control the header space in non-front pages in Twenty Seventeen?
- Target second from last post in loop
- How to perform str_replace on the results of wp_list_pages
- Customizer API way function is_customize_preview() works only in main page?
- Advantages/Disadvantages Using Theme Editor Instead of Pages
- Magnific Popup – Add Caption to Images
- Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]
- How would I get this to work – send to post from thick box
- using theme check plugin to remove waring and errors from my theme
- paragraph format in WYSIWYG on a custom theme?
- unable to display the image meta value as background
- editor style css and page template with and without sidebar
- 3 x 3 grid of posts on the home page
- Show category and description
- How to update my own theme?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- WordPress custom jquery not found
- The normal loop with different styles doesn’t work in search.php
- Pass custom css class to add_menu_page
- How to force unlink on attached/inserted images?
- How to determine if it is legal to remove credit link from theme?
- How to create sub-menu in “Allure Real Estate Theme for Placester”?
- Replacing static code in a template file with a sidebar and widgets?
- Configuring static page with add_rewrite_rule gives 404 after navigating to Permalinks admin panel
- How to Enable Hot Module Replacement with Webpack
- custom wordpress theme blog page always not showing the last two pages of the articles
- Cart button not working on mobile version [closed]