0

I am using Events Manager in wordpress.

I have to display current month events in home page, for that I am using below code.

get_row(“SELECT * FROM chip_em_events WHERE event_category_id=’2′ AND event_id=’4′”, ARRAY_A);
echo “”;
echo “$row2[event_name]“;
echo “$row2[event_notes]“;
?>

I can get only on event_name and event_notes where id=”4″ but i need to display all events under event_category_id=’2′ for current month.

1 Answer 1

1

In your query, you ask for "AND event_id=’4′", if you want other IDs, don't ask for a specific one ;)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.