• Resolved mickna

    (@mickna)


    Hi there,

    I want to extract the event name via php like I do for single posts and pages:

    function get_my_cat_title ( ) {
      if ( is_category() ) return single_cat_title("", false); //category titel
      if ( is_home() ) return 'THE BLOG';
      if ( is_singular('x-portfolio') ) return get_the_title();
      if ( is_page() ) return the_title("","", false); // page titel
      if ( is_search() ) return get_search_query(); // search field
    ....
        } 
      } 
    }

    Is there something like “is_event()” or similar?

    Thank you,
    mickna

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get name of event (post) in php?’ is closed to new replies.