Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$posted_on variable holds a permalink to the currently open post #4

Open
piotrszczesniak opened this issue May 19, 2022 · 0 comments
Open

Comments

@piotrszczesniak
Copy link

piotrszczesniak commented May 19, 2022

I'm having an issue with the below lines that are part of function flatsome_posted_on() within https://github.com/nhannd314/flatsome/blob/master/inc/structure/structure-posts.php. The function can either be called on the page with posts which is understandable as the permalink of the date brings a user to the post itself, but the same permalink is also used on the post itself which also brings the user to the currently open post - I don't quite understand the logic behind it. My idea is that the link in the date on the post should bring the user to the archive page with posts from the same date. :)

$posted_on = sprintf(
        esc_html_x( 'Posted on %s', 'post date', 'flatsome' ),
        '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant