Plugin info

Total downloads: 1,258
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 10/13/2014 (4107 days ago)
Added to WordPress: 10/13/2014 (11 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 4.0.0
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4107 days ago

20/100

Is custom-post-edit abandoned?

Possibly abandoned (last update 4107 days ago).

Compatibility

Requires WordPress: 4.0
Tested up to: 4.0.0
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

This plugin is intented for Developers only it’s a effort to implement a simple custom front end post edit form using angularJS.

I’ll be tracking issues via github:

https://github.com/vimes1984/custompostedit/

It uses angularJS for the form and requires you pass a $_GET['posttoedit'] variable in the url to the form containing the post ID you want to edit.

Example:

 http://EXAMPLE.com/?posttoedit=POST_ID_TO_EDIT 

You are going to need to update three files to get this up and running first the form:

These fileds need to match the following syntax where in this case monthlysalary will be the object passed to the php function:

Example:

  

File:

 /includes/customedit.php 

Then the class customPostEdit->post_edit_fac() method, line 237-> 262 is the function that actually updates the post and is called from the javascript:

File:

 customPostEdit.php 

you are going to need to fill these in with the fields you want to update you can find the default fields here:

https://codex.wordpress.org/Database_Description#Table:_wp_posts

And you can update post meta fields like so:

Example:

 update_post_meta( $postID, 'wpcf-monthly-salary', $monthlysalary ); 

There is one last file you may need to edit and that’s the AngularJS file you may need to change
Example:

 $scope.formobject = {'jobID': '', 'title': '', 'jobcontent': '', 'monthlysalary': ''};  

Object to match your form fields in this file:

File:

 /js/custom-post-edit.js 

This file calls the php endpoint we defined in the first file the post_edit_fac and sends the formobject {} to that function from the form.

You can place the form anywhere you want using the shortcode:

Shortcode:

 [post_edit] 

Good luck and post any issues to github I’ll gladly lend a hand…

Installation

  1. Upload “ to the /wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Place <?php do_action("custom-post-edit_hook"); ?> in your templates

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0.9

*updated readme and added instructions

1.0.8

*updated readme and added instructions

1.0.7

*updated readme

1.0.6

*updated readme

1.0.5

*updated readme

1.0.4

*updated readme

1.0.3

*updated readme

1.0.2

*updated readme

1.0.1

*updated readme

1.0

  • Initial Commit