how to use update/delete posts of Wordpress REST API? - php

I just downloaded and installed the plugin a few hours ago and read the documents. I tried wp-json/wp/v2/posts and it showed me the posts but when I did wp-json/wp/v2/posts/24/delete, it just showed the same thing.
Do I have to download another plugin or extensions to use it? Or do I have to add some custom code in the .php files?

Related

Is it possible to use WordPress theme preview as main website source that will work all functions?

I'm new in WordPress
I misunderstand one thing about the theme use in WordPress
For example, I wanna create the as same website as this I purchased this template.
But when I installed the theme in WordPress it shows me the default Index.php file with little info, used my purchased theme
And when I purchased the theme there exist all src files of the above website.
How I can use my purchased src files of website that will work all function for ex: logins with db?
Thanks in advance!!!!
After you purchased the theme, you probably have just installed the theme and haven't created any pages or tweaked any settings. So if you want to get the same look as that of the preview website, you probably have to check whether the developer has provided any dummy data for importing.
Most of the themes listed in ThemeForest would have the option to import dummy data, so that customers would be able to install some pre-made posts, pages, config, etc. This might be there inside the custom settings page(as a single button to download the content) of the theme, or maybe they have provided it in separate XML files for you to import. If the files you have downloaded doesn't have it, make sure you downloaded All files & documentation. Here's a sample screenshot:
My guess is that you might have only downloaded using the Installable WordPress file only option.
If you are still unable to get the dummy data, probably you have to ping the support of that theme asking them to provide the dummy data.

Wordpress Migration Post Problems

how are you, thank you first for reading my message. I am currently working on a website, created with wordpress, the website has been compromised with security flaws, because when wordpress was installed they did it with a version of php 5.2, also the website is working with Wordpress version 5.3.4.
I am looking to make a clean copy of the website, first to be able to install the latest version of php to date 7.4, since the website generates errors when I try to change the version of php by force.
I am looking to make a copy of the post, with their respective featured images, using the wordpress exporter I have managed to export the entries without problem, but I cannot export the featured image.
I have tried to do various things:
1- export the entries, and then manually upload the images to the uploads folder
it has not worked
I don't want to migrate the entire site as the template has some styling errors that need to be fixed.
There is a way to migrate blog posts with the featured image, but I haven't figured it out so far, can you give me a hand? maybe a plugin? or how can I copy the posts directly to the database from php my admin, any suggestions?
There are various plugins which exports and imports posts into a Wordpress website.
I usually use the below plugin to import Posts from one WP website to another.
Export Plugin: https://wordpress.org/plugins/wp-ultimate-exporter/
Import Plugin: https://wordpress.org/plugins/wp-ultimate-csv-importer/
Install both the plugins in the website where you want to export. Setup will create a CSV file with posts.
After that, install the Importer plugin alone in the site where you want the pots to be imported. Now, Upload the CSV file to import the posts.
If this answer works for you, do accept and upvote the answer.

How to import posts of external url to Wordpress site?

I've built a new website using Wordpress system for developing.
I want to import posts from old site which is non-wordpress external site.
Because there are too many posts on non-wordpress site (maybe over 4,000 posts), so I cannot copy so many posts from the old site to the new site one by one.
New site URL(Wordpress): http://kcsaa.muvy.com.tw/
Old site URL(.JSP File): http://www.kcsaa.org.tw/context_single2.jsp?sla=2046
My question is how to import the posts of non-wordpress site to wordpress site easily and quickly?
By the way, I hope there is a way to solve this problem by using browser extensions or Wordpress plugins actually.
Thank you guys!!
If you can export the posts from the non-wordpress site to an .xml or .csv file you able to import it into WordPress. There are some great plugins to import .xml or .csv files.
I used this plugin a couple of times and it worked pretty nice:
https://wordpress.org/plugins/wp-all-import/
Make sure your .xml or .csv file includes the images paths. Otherwise you loose all images.
Before you import the posts create a full backup.

Finding extenal links/connections from a wordpress site

I downloaded some free wordpress themes online and also got some demo content online. After importing that demo content to wordpress theme, I modified my wordpress site for months. And everything looks ok.
The problem is, i downloaded that theme and demo content from a unknown site(i dont know the exact url too, because i just searched and downloaded). And i doubt that contain some external link. ie... if my php files or demo content contain some malicious code, can anyone(the creator or theme or creator demo content) steal my info? is it possible? If it is possible how to check external connections from my php files and from demo content imported? Is there any plugins or any tools available for this?
Wordfence is the best security plugin for WordPress. The basic version is free. Check out https://www.wordfence.com. You can use it to scan your files.
Backup your files and database before you install Wordfence.
Follow the instructions if you think your site has been hacked at https://www.wordfence.com/docs/how-to-clean-a-hacked-wordpress-site-using-wordfence/. You may also want to read the instructions at https://codex.wordpress.org/FAQ_My_site_was_hacked for more tips.

How do I install the Telarus GeoQuote Plugin to my WordPress site?

I have a plugin from Telarus called GeoQuote. It's a lead generation plugin for their agents, and I'm trying to help an agent get the plugin working on his WordPress site. I have all the php files and the css file in a separate folder.
My question is, how do I get it on the website now? I tried the WordPress plugin installer, but it didn't work.
I'm assuming I can upload the files to the hosting server with FTP and then use php code to call on the plugin in the widget area I created in WordPress. But I don't know what kind of code to use.
Can someone help walk me through this or at least point me in the right direction? Thanks for your help.

Categories