• Resolved Argumentum

    (@argumentum0)


    Hi,

    I am having a problem with the page title of one category only (as far as I know):

    https://www.themetaindex.com/category/books

    You see, the page title has “Private: ” before (what should be) the actual title.

    <title>Private: Category: Books – The Metaindex</title>

    This only happens when The SEO Framework is enabled. It doesn’t matter if I have the Title Fix extension enabled or disabled.

    I couldn’t check all the category pages, but from what I’ve seen, this happens only on that specific page.

    The problem persists even if I choose to “remove prefixes from title” on Settings. The title becomes this:

    <title>Private: Books – The Metaindex</title>

    I hope you can help me solving this. Thanks in advance.

    • This topic was modified 8 years, 2 months ago by Argumentum.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Argumentum,

    I hope you’re doing well.

    This is because the latest posts within the books category has been marked private.
    This is a bug :(. Could you confirm this is the case?

    I assume “Private” would become “Protected” if you also add a password to the latest post.

    I’ll be sure to address this in the next update. I hope to be able to release it this week.

    For now, you can easily solve this by adding this (WordPress core) filter to your theme functions.php file:

    
    add_filter( 'protected_title_format', 'my_private_protected_title_format', 10, 1 );
    add_filter( 'private_title_format', 'my_private_protected_title_format', 10, 1 );
    function my_private_protected_title_format( $previous = '' ) {
    	return '%s';
    }

    If you have any more questions, feel free to ask! Cheers!

    Thread Starter Argumentum

    (@argumentum0)

    Hi,

    Thanks for the prompt reply.

    This is because the latest posts within the books category has been marked private.
    This is a bug :(. Could you confirm this is the case?

    Apparently this is not the case, because I have no posts marked as private (unless they are hidden or something).

    Anyway, the filter does solve my problem. I’ll remove it after the next update to see if the bug is gone.

    Thanks again!

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Argumentum,

    That’s odd, there seems to be a term/post ID conflict.
    Nevertheless, I already have found a solution to be shipped with 2.7.1 :).
    Note: If issues keep recurring with that category I’d advice to delete the category and set it up anew.

    The shipment of 2.7.1 is taking longer than first expected, more on that will follow as soon as I can sticky topics again :).
    So you should hold onto the filters a little longer.

    Cheers!

    Hi folks

    Just wanted to let you know, that I tried to reproduce this issue, but was unable to…
    – Created a new category
    – Created a single private post in that category

    Now, the post title itself is prefixed “Private:” very much as expected. But the category is not. So no issues here… Can it be WordPress version/plugin/theme related?

    Bjarne, on a WP 4.6.1 divi 3.0.5 testsite.

    Plugin Author Sybre Waaijer

    (@cybr)

    Thanks for your input Bjarne! I also couldn’t replicate the issue :).

    But the planned fix is rock solid. It basically will check if the output is singular before adding such prefixes):
    <The commit>
    <The new condition>

    • This reply was modified 8 years, 2 months ago by Sybre Waaijer.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Category page title with weird, unwanted prefix’ is closed to new replies.