Käynnissä

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:

<?php

$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>

<dt></dt>

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

</dl>

<?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

About the Employer:
( 197 reviews ) Christchurch, New Zealand

Projektin tunnus: #8657691

Myönnetty käyttäjälle:

petrotsymb

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)
5.4

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

fennel

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)
6.9
NeOLiO

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)
6.9
Anthprogrammer

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)
6.4
manojkhichar

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)
6.3
InfamyTechnology

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)
6.2
AzmatM

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)
5.2
jovanovBogdan

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)
4.6
iamathcrazy

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)
2.4
kmpinfosolution

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)
1.2
drxman927

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)
0.0