Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Kristof

    (@kh-webmaster)

    An simple and quick workaround I set up now is to install the plugin redirection
    https://ww.wp.xz.cn/plugins/redirection/

    enjoy or improve
    Kristof

    Thread Starter Kristof

    (@kh-webmaster)

    I found a compromis.

    Instead of focusing how to figure out the canonical issue, i took it for granted an redirect all the requets for the frontend to http. this way i can still use my private ssl for the backend.

    http://blackhillswebworks.com/2013/10/30/redirect-wordpress-front-end-https-urls-to-http-without-a-plugin/

    I hope someone else can use it.

    If however someone knows why I couldn’t disable WordPress’ canonical, please let me know.

    Kristof

    (@kh-webmaster)

    maybe you can find, when the function https://codex.ww.wp.xz.cn/Function_Reference/the_modified_date
    should be set. I don’t see if it is only used for the content or for the entire DOM.

    Anyway. WordPress standard funktion will set a new date on the page you moved in your menu if you give it a other parrent within the page-section.

    When using WordPress individual menu to move sites around, it doesn’t change the date as you would want it, but sure it doesn’t come in handy.

    It looks like this two Dates are not well separated within WordPress itself allready. Change of DOM and change of artikel-content / page-content.

    Kristof

    (@kh-webmaster)

    Klar, dass macht kein Spaß. Dann hast Du es aber sicher 😉

    in Nested Pages finde ich keine Option, außer das Datum, wann die Seite erstellt wurde. Und dass ändert sich bei mir nicht.

    Ich vermute dein Theme liest das Datum aus, wann das DOM geändert wurde, und dass ist nunmal der Zeitpunkt, an dem Du das Menu veränderst. Vielleicht hilft das.

    edit:
    Wenn Du über die WordPress eigene Funktion, eine Unterseite einer anderen Elternseite hinzufügst, ändert sich nur das Datum dieser Seite (unten rechts im Editor im Backend), was meiner Meinung nach noch weniger schlüssig ist.

    Kristof

    (@kh-webmaster)

    what about the html code of your menu. you changed it and it is on every page, just like your content. the document changed.

    I understand, you want to show the date, you changed something in your text as an editor. I don’t know if there are seperate options for that and the change of the document for caching information.

    You could add a date field with advanced custom fields where you enter the date you want to show in your website, than it is separated from technical stuff, for sure.

    Thread Starter Kristof

    (@kh-webmaster)

    Update:

    I tried <?php remove_action('wp_head', 'rel_canonical'); ?> with WordPress 4.3.4 and it works.

    In addition I found the /wp-includes/default-filters.php to look up all the actions and filters and added the followin to my 4.5.2 setup

    remove_action ('embed_head', 'rel_canonical');
    remove_action ('template_redirect', 'redirect_canonical');
    remove_action ('template_redirect', 'wp_redirect_admin_locations', 12);
    remove_filter ('option_blog_charset', '_canonical_charset');

    still the wrong canonical is showing – I guess now I am really out of ideas.

    cheers

    Kristof

    (@kh-webmaster)

    I don’t know, why it is a big problem – and by default this is the correct behavior.

    you change the menu, you modified the page. most likeley all pages, as the menu is on alle pages.

    even if the menu wouldn’t show every site in the html dokument, you will most likely have every paged modified if you changed something in the toplevel.

    Thread Starter Kristof

    (@kh-webmaster)

    Hi George – @momnt,

    thanks for the help.

    I figured out, that the bug is related to the “Date time separator”, which might change the bug into a feature request.

    My mistake/misuse:
    I entered um as the @ doesn’t make sense in German and that way I would have a output I would prefer.
    u ends up beeing 000000 an m month in number 04 or 05, as any other date() function of PHP works in that field.

    My solution:
    Entering html number um works quite well 🙂

Viewing 8 replies - 1 through 8 (of 8 total)