Help needed to get Events category working correctly on Wordpress site

I have a Wordpress site where we want to show Coming Events. We want simple solution with a category called Events and the event will be a post in that category - with the date set to a future date.

I have created a category template with the following code:


$my_query = new WP_Query('category_name=events&post_status=future&order=ASC');

while ($my_query->have_posts()) : $my_query->the_post();

$do_not_duplicate = $post->ID;


<dl class="events">

<h2 class="title entry-title"><?php the_title (); ?></h2>


<dd><?php the_excerpt(); ?></dd>


<?php endwhile; ?>

This is working to show the future-dated posts in the Events category as an excerpt. But when you click on 'read more' it gives a 404 error. This is because the post permalink is showing like /?p=2120 rather than the postname.

I need some help to get it working so when you click on 'read more' from the excerpt it will show the page correctly.

Taidot: PHP, WordPress

Näytä lisää: help on wordpress, category php id, asc it, 404 page template, wordpress site working, wordpress site needed, simple wordpress site needed, checkout working wordpress site, wordpress site freelancer needed, need help fixing wordpress site, need help wordpress site, wordpress site working firefox, wordpress cart working correctly, wordpress site designer needed

Tietoa työnantajasta:
( 197 arvostelua ) Christchurch, New Zealand

Projektin tunnus: #8657691

Myönnetty käyttäjälle:


Hello, i can help you with it. We already worked here together on some changes. Thank you, wait for your reply.

30 $ USD 3 päivässä
(51 arvostelua)

11 freelanceria on tarjonnut keskimäärin 70 $ tähän työhön


Hi, Pelase show me your website as well and I am able to fix this issue. Thanks Let's Discuss on the chat for more detail about your project. In the meanwhile please check our work and skills ----------------- Lisää

147 $ USD 3 päivässä
(136 arvostelua)

Hi, Respected Client, I am web developer and designer having 10 years professional experience in the competitive field of IT. I am PHP expert and I will provide you complete future event script. I have checked your Lisää

73 $ USD 1 päivässä
(148 arvostelua)

I am 5+ years experienced in HTML5, CSS, PHP, MySQL, Javascript, Wordpress, joomla, Magento, drupal, opencart, jQuery, Ajax. I love to code. One thing I believe in is never quitting. I will work hard and long to ge Lisää

61 $ USD 1 päivässä
(78 arvostelua)

Hello Sir/Ma'am, Greetings of the day! We have analyzed your requirement and understand well in the project specification that you need to fix your query 'read more' and remove 404 error and redirect Lisää

99 $ USD 1 päivässä
(108 arvostelua)

Hi, We have expertise in design and development of website . Please discuss in brief so that we can start working on your project. Please have a look on my profile. [url removed, login to view] Lisää

100 $ USD 1 päivässä
(40 arvostelua)

Hello there,- Here is something you should read which will help you to select best freelancer. I just got your project and it's description and i read it very carefully as usual. The skill set required to make thi Lisää

74 $ USD 0 päivässä
(53 arvostelua)

Hllo. I understand what is problem with the link. I can do it. Payment on completion of job. Best regards, Bogdan

40 $ USD 1 päivässä
(30 arvostelua)

Dear Client, This proposal is in reference to the project description given by you. About US : We have a team of highly qualified and experienced professionals with more than 5 years in Web development, design Lisää

50 $ USD 3 päivässä
(8 arvostelua)

Hello, WE CAN DO THIS FOR YOU!! Thank you for the opportunity to submit a proposal for you. We can do this, please provide us a chance to work with you. Could you please message us on PMB to discuss this project. Lisää

45 $ USD 3 päivässä
(1 arvostelu)

ican fix the code and help you in no time iam perfect in wordpress code edit and create good in wordpress plugin creation and template creation

55 $ USD 2 päivässä
(0 arvostelua)