• Hi guys,

    I am still discovering the wordpress API, so forgive me If I perhaps missed something.. a bit tired to figure it out already..

    Here is my use case:
    I have page Projects (Primary Top Nav)
    Also I have custome type page “Projects”: where I create and have a list of particular project pages.(I’ve created it and other custom fields by CCTM)

    On the page Projects I have a list(on left side) of created project pages (just titles) and their content.

    Just to give more idea.. heres is screenshot how it looks like https://img41.imageshack.us/img41/4126/c5n.png

    My task is:
    1) To make add up automatically new projects in the Aside Projects Menu, once new project has been created.
    2) Aside Project Menu sorts list items in a way that first item is the most recent project.
    3) On click in Top Primary Navigation on “Projects” link, I want that it would open first project (Project One as seen on the screenshot) in the list, and highlighted it.

    For the task 1:.. it seems I need to use “wp_list_pages” but I don’t know how to make it to list only my Project Pages.

    Task 2: I presum it should be something related to sort_order: ‘DESC’?

    For the Task 3: I know I have to create new template-page.php and put in some fancy code.. that would make a magic happen..
    But I am not sure what code it is.. and were to look at..

    So I would be very much thankful if someone expereinced might help me, guid me or point me in a right direction..

    Thank you in advance

    Alex

Viewing 2 replies - 1 through 2 (of 2 total)
  • Alex,
    You need to delete the page “Projects” and use the WordPress built-in archive page for custom post types. This should feature a filename of archive-projects.php. The include a loop with the information you want to include (titles, content or excerpt, etc.

    Thread Starter AlexReds

    (@sr-2)

    Thank you mrpritchett!

    I’ll try this.. let you know how it goes ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need adivce on customisation of custom pages and secondary naside navigation.’ is closed to new replies.