Skip to content

Propose to create a new badge when no search result #2

@leocharlier

Description

@leocharlier
  • Go to the archive page (list badge).
  • Make a research without result.
  • If it's an academy or admin user, propose to create a new badge.

Code from archive-badge-none.php

<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>

			<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'listify' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions