• Resolved CJ500

    (@cj500)


    The WordPress installation for this site is in a directory. When a history event is added it is stored correctly with the url including the directory as expected. When the event is viewed or the widget or shortcode are used on page no events are found and url in address bar does not include the directory (the /2018/ in the above address is missing). It is trying to find the post in the root of domain rater than the directory. Could you ponit me to what I should change to get the url to find the file including the directory.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 393930

    (@anonymized-393930)

    This link you have given isn’t one for This Day In History. This takes the form of the plugin name followed by the date of the event. e.g.

    www.example.com/this-day-in-history/1715-09-20/

    or if WordPress itself is installed as a sub-directory then

    www.example.com/sub-directory/this-day-in-history/1715-09-20/

    It won’t add the year nor use a different name.

    Thread Starter CJ500

    (@cj500)

    THanks for getting back to me.

    The link given was the link to the page with the shortcode on to display the output.

    The event link is https://pastsearch-archaeo-history.co.uk/2018/this-day-in-history/500-12-15/

    The shortcode used is [tdih month=12] but no events are shown.

    When events admin page is opened and view is selected the event url is shown as https://pastsearch-archaeo-history.co.uk/this-day-in-history/500-12-15/ (ie no dir 2018) and if view is clicked 404 page on old website not in directory is shown.

    Wordpress is installed in the directory https://pastsearch-archaeo-history.co.uk/2018/

    The correct slug including the directory /2018/ is stored in the database.

    What I need to do is to get the shortcode to find the event in the databse and for the view option in admin list to display the correct url.

    Any thoughts?

    Anonymous User 393930

    (@anonymized-393930)

    If you want to list all the events in a month then you must use the tdih_tab shortcode. The tdih shortcode requires a day and month (and will use the current value if one is missing) – this is because the day and month are not shown with this shortcode so the output for a month won’t make sense.

    I’m not sure why the view link in the admin page isn’t correct – I’ll look into it a bit.

    Thread Starter CJ500

    (@cj500)

    The shortcode change did the job on the list page!

    Thanks for your reply.

    It would be great if we could get the view link in the admin page working but it’s not as important as the front end display.

    Thanks again for you help.

    Thread Starter CJ500

    (@cj500)

    Just marking as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress Installed in Directory’ is closed to new replies.