Linked Questions

0
votes
1answer
82 views

Download custom file in wordpress backend [duplicate]

I tried to implement a custom download link in the theme settings, section that will give the users to download there custom settings for the backup. I tried this option if( isset($_GET['download']) ...
0
votes
0answers
16 views

Warning: Cannot modify header information - headers already sent when trying to download a simple text file [duplicate]

I want to be able to click my "Export" button and have a text file downloaded. When I try this, I get the error: "Warning: Cannot modify header information - headers already sent ....". I have a ...
0
votes
1answer
1k views

Can I use a form in a dashboard widget?

I'm building a plugin and would like to add a dashboard widget with a custom form. In this form, users should be able to edit a list of strings (add, edit and remove items). Is there a WordPress API ...
1
vote
0answers
2k views

Export Wordpress Table to CSV from page

I want to export my members table to csv format on my default download location. So I used a shortcode in functions.php and called it on a page. I am getting an already sent header warning and csv ...
1
vote
1answer
1k views

Displaying BLOB PDF File

I have some pdf files that are stored in the wordpress database as a blob and I need to display these files. The files are not linked to any posts directly. The code I have currently is: <div ...
0
votes
0answers
2k views

Create csv file in plugin

I have written a function to create csv file usin the below code.I am getting Headers already sent warning and I can't able to create the csv file too.How can I fix this problem.I have attached the ...
3
votes
1answer
971 views

Ajax form submission from admin panel

I have created a page in admin panel and there I have created a form for CSV export/import . Action of my form is "/wp-admin/admin-post.php" . I want to submit that form via ajax . I want to remain on ...
1
vote
0answers
1k views

How to give a download link to a .csv file from the custom plugin?

I have made a custom plugin, which exports MYSQL table contents into a .csv file which gets saved in to wp uploads directory. Now, I am trying to give a download link for downloading directly a .csv ...
0
votes
1answer
615 views

How to modify admin headers

I'm trying to create a theme settings export script that base_64 encodes the theme options and lets the user download them as a text file. I've seen a post (What is the best way to export and import ...
0
votes
0answers
623 views

Force download of MP3 file in Safari

Seeing as I have an audio player on my page I don't want safari to open the download link in a new tab with another player, I want the mp3 file to download to their computer. My download link is ...
0
votes
2answers
94 views

How to put Word documents online so they can be downloaded, printed and read via a web page? [closed]

I have lots of Word documents that form training materials for work. I would like to develop a website to act as a repository for these documents. However, rather than just store them on a web server ...
1
vote
0answers
56 views

Export Custom Report as CSV

I want to build an admin panel that works like this: User enters a date range and clicks "Show Report". The query results are then displayed in the admin panel. User clicks "Export to CSV" and a CSV ...
0
votes
1answer
37 views

Linking Plugin Files to WP

I am writing a plug-in right now which adds a table to the database when activated. I have another file in my plug-in directory which handles a form submission and writes to the database. This file ...
0
votes
1answer
33 views

Export to csv adding html to file

I am trying to export results to a csv file using the following code. The export appears to work, but when I open the file, it contains the html code from the page. Any help is appreciated. ob_start()...