• I’m trying to get only the text after space in the title.
    example:
    Title: Abc-123 Something something something

    I only wanted to get the text after space that is Abc-123 only.

    this is the code of my theme:
    <h3 class="entry-title"><a rel="bookmark" href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'arras'), get_the_title() ) ?>"><?php the_title() ?></a></h3>

    I tried making an array of the_title() didn’t work it still completes.

    Regards

  • The topic ‘Get the only the title after space’ is closed to new replies.