• Hello

    I need to modify some phrases of the default post type ‘post’ on the backend, programmatically using the theme functions.php, not the lang files !

    example: display ‘items’ instead of ‘posts’

    any idea how could this be done? or any small tut about it?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can create custom post types, one could be called “Items”. If need be, you could undefine the menu items of regular posts, effectively hiding them, so only your Items menu is shown.

    If you really need to change the nomenclature of the default type, and a custom type will not do, it’s easy enough to change the menu labels. Cleanly changing the page labels and related button labels could be quite difficult, or even impossible without a core hack.

    Thread Starter John Mido

    (@h3o-co)

    actually i need to change the nomenclature of the default type not to create custom one,

    can’t it be done trough a filter to replace the default value? or something like that.

    Moderator bcworkz

    (@bcworkz)

    One would think. I had a good poke around into the source code a while back trying to alter all the “Add New” references, and could not find a clean way to do it. Not exactly the same thing, but very close, so there may be a way, but it was beyond my ability to find it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘modifying post type lang phrases’ is closed to new replies.