Home Forums Plugin Support WP User Frontend Pro How to limit content in WP SEO description field?

This topic is: resolved

Tagged: 

This topic contains 11 replies, has 2 voices, and was last updated by  Roxanne 5 years, 3 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #16125

    Roxanne
    Member
    Post count: 24

    I tried to Put this code in functions.php of my theme `function wpufe_limit_text() {
        ?>
        
        < ?php }   add_action( 'wp_footer', 'wpufe_limit_text' );` But this always gives me error."Headers already sent" Please let me know how to put it in the file so that it works properly. I pasted the exact code in functions.php file. If i have to put some tags before or after please let me know. null

    #16128

    Tareq Hasan
    Keymaster
    Post count: 2831

    Somehow the code didn't come along. I am sure there is something wrong with your copy/paste. Can you put your whole functions.php in http://pastebin.com maybe, so I can have a look?

    #16139

    Roxanne
    Member
    Post count: 24
    This reply has been marked as private.
    #16140

    Roxanne
    Member
    Post count: 24

    Please add the code in this functions php file and send me. so that i update it. Further, i need to add a column and row code as well. If possible add that as well in this file. I will rename the column header as per my choice.

    Thanks

    #16143

    Tareq Hasan
    Keymaster
    Post count: 2831
    #16148

    Roxanne
    Member
    Post count: 24

    Thanks Tareq. It works perfectly. Now i want to ask you a question. Actually, I want to achieve a column of earnings that shows earning infront of each post like 2 dollars fixed or can be variable. Your plugins is to generate revenue but i am going to use it to pay my users who will post articles on my site. Like 2 dollars per article. So i have to show earnings column in the dashboard.
    Please suggest me what to do in this regard.

    I also didn't know how to put some text in the row of newly added column in dashboard.

    Thanks again for your awesome support.

    #16157

    Tareq Hasan
    Keymaster
    Post count: 2831

    The easiest solution would be to put the earning in each posts meta key and show that in dashboard.

    #16161

    Roxanne
    Member
    Post count: 24

    Can you please tell me where i can find each post meta key….? how to edit it or enter some text infront of each post?

    #16164

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can do that in every posts edit area in wp-admin panel. There should be a box called “Custom Fields”. If you don't see it, activate it by clicking the “Screen Options” button at the top right corner of your screen. On the “Custom Fields” meta box, you can see the public meta keys and values, also you can create new and edit them.

    #16176

    Roxanne
    Member
    Post count: 24

    That's great. I checked custom fields. I have to select a custom field and then enter value. Now, i am not understanding it which custom field to select.

    One more thing, my theme is using views custom field. It counts visits per page and i have all the information like custom field value and description and now i want to add one more column in dashboard that shows my users how many views their posts get.

    Please update me with any suitable solution. And thanks a lot for your wonderful support.

    #16192

    Tareq Hasan
    Keymaster
    Post count: 2831

    Here: http://pastie.org/private/qeflmrxjd2lvbraltxqhka. Change the custom field to your preferred custom field.

    May be some google search will make you better understanding the custom fields 🙂

    #16199

    Roxanne
    Member
    Post count: 24

    Thanks a lot tareq. That's what i really want. It solved all my issues. Wonderful support.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘How to limit content in WP SEO description field?’ is closed to new replies.