• Resolved TakerMH

    (@takermh)


    Is there any way to hide the author info?
    I wrote myself a plugin to display the author info, but I don’t seem to get it working with the events.

    if (empty($_bio) || is_single() == false )
    	return;

    If one of those conditions is met, the info isn’t shown. Is there a similar function to “is_single()” with which I could check if this is an event-page?

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Author info on single event page or? If so, your WP theme adds this information. The easiest way is to use CSS code and hide that info.

    Thread Starter TakerMH

    (@takermh)

    Yes, there is an author info on a single events page.
    My way around it at the moment is a generic user, who has no bio, so the info isn’t shown.

    Just wanted to know if there is a function similiar to is_single() from the wordpress standard to determine if the page I’m looking at is an event.

    Or is there a variable which is publicly available to check if it is an event?

    As I stated before, I wrote the plugin for the author info myself, because I wanted some infos to be shown.

    Here is the page, where I want to use the plugin (just added a bunch of events for testing purposes)
    http://www.messehunter.de/calendar/

    Thread Starter TakerMH

    (@takermh)

    Ok, I got it!
    I now read the field ical_uid from the database. If this is set, I know it’s an event and I don’t show the author info.

    I am glad your problem is solved 🙂

    Take care,
    Ben

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

The topic ‘Hide Author Info’ is closed to new replies.