• Resolved martinhinze

    (@martinhinze)


    Dear Oliver,

    thanks a lot for this neat and beautiful plugin. Could it be possible to add selected custom fields of the posts to the post list the plugin generates? My posts have a custom field called “composer”, since the editor posting content is not the one who wrote it. I would like to have list entries roughly like this
    [value of custom field “composer”][delimiter][post title]

    Would it be great effort to implement this?

    Thank you and best regards,

    Martin

    https://ww.wp.xz.cn/plugins/simple-yearly-archive/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter martinhinze

    (@martinhinze)

    Sorry, I should have added that “composer” in this case is a custom taxonomy.

    Plugin Author wpseek

    (@alphawolf)

    Hi martinhinze, sorry for the laaaaaate reply!

    I just released a new version which allows to filter the post’s title output so you can hook into and append whatever you want.

    So basically add the following to your theme’s functions.php file:

    add_filter( 'sya_the_title', 'my_sya_filter_title', 10, 2 );
    
    function my_sya_filter_title( $title, $id ) {
    	return $id . ' - ' . $title;
    }

    This will append the post’s ID to the output. This also allows you to append custom taxonomies and more.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display post's custom fields in archieve views’ is closed to new replies.