• Hello,

    I have AutoNav setup on my site and it is working great, I have the image to the feature image to the left with the post title and except to the right but I would like to add a read more and date to the right also so it displays as follows:

    Left – Feature image
    Right – Title, Except, Read More->, Date

    Thanks
    Gary

    https://wordpress.org/plugins/autonav/

Viewing 1 replies (of 1 total)
  • Plugin Author wlindley

    (@wlindley)

    You can do this with a custom filter, added to your theme’s functions.php file. There are two default sets of output filters in AutoNav, one for tables, and the other for lists. From the autonav-wl.php:

    add_filter('autonav_create_table_item', 'an_create_output_picture', 10, 4);
    add_filter('autonav_create_table_item', 'an_create_output_text', 15, 4);
    add_filter('autonav_create_table_item', 'an_create_output_excerpt', 20, 4);

    You can examine those routines like an_create_output_text and make similar ones for the “read more” and date output, either as a single function or perhaps one function each. Then add to the filters for either the table or list with a larger (later) number in your functions.php:

    add_filter('autonav_create_table_item', 'my_autonav_extras', 50, 4);

    Or contact me directly and I can do this for an hour or two of billable time.

Viewing 1 replies (of 1 total)
  • The topic ‘Date and Read more’ is closed to new replies.