Custom 404

Posted in: Newspaper
Post count: 12

Is there any way to make a custom 404 page?
Or do I have to manually edit the 404.php file?

I’d love to be able to do some customizing with the visual composer. But even if that wasn’t possible, i need to modify the articles shown on the standar 404 page, since they are being shown by created date (oldest first)

you can check it out here: http://aztecasonora.com/this_page_doesnt_exist.html

Any help, would be greatly appreciated

Post count: 6600

Hi,

Unfortunately you’d have to edit the 404.php template file and customize it. You can’t use the page builder to customize it but you could use the do_shortcode function to add blocks/widgets created using the VC page builder.
You can find more info abut how you can add content using the do_shortcode function here: https://forum.tagdiv.com/topic/a-few-questions/#post-29762
You can use the orderby parameter to set the sort order you want: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters ..here: http://screencast.com/t/d8W1lnm6gle

Thanks

Post count: 12

excellent, thanks for the response Lucian. I’ll try it out today.

Post count: 12

so in theory i just have to add an arg to the array of:
‘order’=’DESC’;

Post count: 7909

Hi,

Like Lucian said try to add 'orderby'=>'date',(please see Lucian’s screenshot) if you want articles to order by date or another parameter from there: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.