• Hi,
    I’ve a custom plugin for my real estate site which allows me to upload custom post information summarized in a txt file to different FTP Accounts.

    With the plugin I can select which properties I want to upload to which FTP Site. Once the property has been uploaded to the selected FTP site I would like to set a “Yes” Flag to the properties uploaded, so I know which property has been “published”. The flag will be overwritten everytime I do a new upload. By default the flag is set to “No”.

    This is only used at the admin backend.

    Any idea how I can do that?

    Thanks, Chris

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    How are the properties stored? Custom post type? I’ll assume so, the same concept should be applicable to other WP objects. You can add custom columns to the standard list table. Perhaps the cell is either a little red dot or a big green checkmark. What is displayed is determined by a value in post meta. You can even make the column sortable so all the properties left to do are on top or bottom.

    You can also add custom action links that appear on hover, like the default edit, trash, view, etc. If you can manage to get a particular URL to cause a FTP upload action to begin, it could be a good way to manage uploads, all from the list table.

    For that matter, we can now add custom bulk actions to list tables. You can checkmark certain properties, then select “Send Data” or whatever, and assuming you can write a script to manage the FTP to multiple properties, the entire task could be automated. Maybe you won’t need the custom column. It’ll all just work unless an error occurs, which can be presented in a message box at the top of the screen.

Viewing 1 replies (of 1 total)
  • The topic ‘Add a yes/no in Admin to a list of posts’ is closed to new replies.