WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
[resolved] remove custom field data from the excerpt (5 posts)

  1. qzha017
    Member
    Posted 1 year ago #

    Hi,
    dose anyone know how to remove the custom field data from the excerpt?

    I want to separate the custom field out from the main excerpt so I can css it. Now it shows 2 copies of them, one in the excerpt which is styled like all other excerpt texts, one is at the bottom which I want to keep.

    I am using the below code
    Location: <?php echo get_post_meta( $post->ID, 'Location', true); ?>

    Thanks everyone

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. Tareq Hasan
    Member
    Plugin Author

    Posted 1 year ago #

    I am surprised to see that nobody takes a look to the plugin option. I said the same thing over and over in the support forum. Please take a look at the plugin options, there is checkbox there if you want to show attachments and custom fields in the post or not.

  3. The.MacGuffin
    Member
    Posted 1 year ago #

    I have the same problem and question. Tarek, I think you have misunderstood. I want to show custom fields in the add/edit pages BUT I dont want the custom field data to be added to the post content or exerpt.

    At the moment the custom field data is appended at the end of the post as if part of the post content. There is no checkbox in options asking if custom field data should be appended to post content.

    I have a custom field called Subitle. I add the custom field. I enter a value and post. Then on the post it shows the field data as list below post body. It is in my exerpt but perhaps because short test posts. I look at the post in Dashoboard and the field data not shown in my custom field.

  4. wombat86
    Member
    Posted 1 year ago #

    I have this question as well

  5. strangerrj
    Member
    Posted 1 year ago #

    Tareq has already said. It leaves itself and turn off in the settings. Can not be overlooked. If you want to display the custom fields individually, you can switch this off in the settings and eg its own code. <? php echo get_post_meta ($ post-> ID, 'Location', true);?>, add exactly.

    When it is activated in the settings, the CFs are shown in the description as an entire block.

    So, just exactly the view settings.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic