I'm using metaweblog api to post blogs on wordpress with c# as the language. Everything words like custom fields, tags, category and title. Problem is I can't seem to upload image and set the image as featured image. I've been searching for answers for 4 days already and still no luck. Maybe you guys could help me on this. Thank you very much.
How do you upload image and set it as featured image on wordpress using C# metaweblog api?
1.2k Views Asked by chris_techno25 At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in WORDPRESS
- Ajax jQuery firing multiple time display event for the same result
- Retrieving *number* pages by page id
- How to change the name of the file during unzip?
- Pass variables to extended class
- Dynamic wordpress background Based on Slider images
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
- Wordpress limit post that subscriber can create
- CSS styles for all instances of a WordPress widget
- Detect the function that redirects the page
- Show success or error messages in Ajax response to Wordpress custom registration form
- Internal 500 server error: .htaccess: RewriteCond: bad flag delimiters
- Rerun loop after every third post? (Wordpress)
- Error 404 not going after Wordpress Permalink change to custom structure
- YouTube views not counting on Wordpress embed
- Include only specific categories in WooCommerce product categories widget
Related Questions in UPLOAD
- PHP don't use temp file for upload
- Error 500 Creating default object from empty value when uploading a file
- Upload file to ftp with unique name in asp.net c#
- Media files end up in in a pycharm subdirectory when uploading
- partly upload your input from a file
- How to create file upload like gmail?
- How to Upload file onclick of button of type=button not type=submit in mvc4 using html begin form
- Add metadata (Exif) to base64
- Laravel upload Csv error
- jQuery file upload how to get number of files queued and uploaded
- How to upload an image using image url from web in javascript or jquery?
- Perl FTP uploading empty file to server
- Upload form inside Drupal block
- $_FILES is empty when upload in PHP
- Why am I missing "filename" and "Content-Type" while uploading image using form-data?
Related Questions in METAWEBLOG
- Metaweblog API support in Drupal
- Is MetaWeblog API still supported?
- Why isn't Windows Live Writer working with my MetaWebLog API provider?
- How to associate a category to a post wordpress?
- How to connect Microsoft Live Writer to write blogs on IBM Connections 4.5?
- PHP - Run function for each file in a directory passing two parameters
- windows live writer not detecting metaweblog api
- WCF for MetaWeblog
- MetaWeblog vs Blogger API: How widely supported are they?
- Input XML for WordPress' XMLRPC
- How to attach files with metaWeblog to a blog post?
- How to give tags to multiple posts?
- XMLRPC & MetaWeblog, how can i create a page, create a post, and attach the page to this post
- How to change Orchard CMS default image folder path
- PHP MetaWeblog API server
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found the answer to the problem. XML-RPC alone cannot set any uploaded image to featured image. Head over to this issue page http://core.trac.wordpress.org/ticket/15098. The patch allows returning the ID information of the uploaded image when using wp.uploadFile/metaWeblog.newMediaObject. Once the image ID(not the image URL) is returned, you can set it to wp_post_thumbnail and it should appear as featured image. Another workaround without going this route is by uploading the image first and you should be able to retrieve the URL of the image. Query ID information from wordpress database table called wp_posts where image id is equal to the name of the image uploaded. From there, you can then set the ID to wp_post_thumbnail. Thanks a lot.