The easiest way might be to use get_edit_post_link()
(Codex ref), which returns just the link, allowing you to use it however you need, according to your purposes.
Related Posts:
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- is it possible to run some php code within a wordpress page?
- Remove option to allow trackbacks/pingbacks from post page options
- How to search display_name column when using WP_User_Query
- How to get Woocommerce Variation ID? [closed]
- Display certain amount of posts on taxonomy archive page
- Geocoding an Exploded Custom Field Array
- if has theme mod
- wp_delete_auto_drafts() deletes links in menus
- Bulk Image upload and one image for each post?
- Submitting form via admin-post.php and handling errors
- Trigger Woocommerce New User Email
- Automatically generate Post/Page from searched Database item?
- get_page_by_title with an apostrophe in variable
- Add a Second Menu to a theme that only support 1 menu
- Validate emails in array using foreach
- LESS compiler for WordPress
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Get the the title of WordPress after comma
- Use WP_Query in shortcode
- Ajax not working es expected (Returns 0)
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- Sum the total amount of a specific product purchased per user and display in table
- Increase offset while looping
- Secondary navigation menu on one page
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- How to separate HTML and WordPress files
- WordPress automatically adding comments to inserted PHP code how to disable? [closed]
- How can I make an object available through the entire site?
- WordPress admin-ajax.php
- Plugin PHP file gives error 500 [closed]
- displaying content that includes shortcodes within an echo
- Update a buggy installation
- Error – ‘create_function is deprecated’ [closed]
- Site throws 500 error after upgrading from PHP 5.6 to 7.X
- How to pass a PHP $_GET variable and fetch/output it?
- trouble with page_id & highlighting current page
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to upload WP user avatar on woocommerce account page [closed]
- add_filter function concatenate string and locate_template function
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to get a list of users who like a current wordpress post [closed]
- ‘pre_user_query’ interfering with user export
- Custom CSV exporter – Cannot modify header information – headers
- Custom post type url Rewrite (conflicting with page url)
- WordPress custom taxonomy
- pagination broken – clicking next displays “page not found”
- PHP: How to access db the right way in plugin?
- How to decrease the max file upload size without using php.ini or htaccess?
- populate select options from extra mysql table data
- Custom forms with HTML
- How to check post meta isset or not empty during publish/save post?
- Nav Walker that shows only children and siblings of top level parent menu item
- Add posts to custom table in database instead of wp_posts
- Woocommerce. Get a list of products in the current category on the archive page and product page
- WordPress – Query specific category and automatically change category each month
- What are the advantages/disadvantages of ways to use php template files?
- remove_action from parent theme using child theme functions.php
- Hide Approved status for certain users in users list
- is_user_logged_in returns false when I access certain pages
- Warning: urlencode() expects parameter 1 to be string, array given in /wp-includes/formatting.php on line 5343
- Constant expression contains invalid operations plugin class properties visibility
- Possible to edit custom date field and display?
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Adding a LISTING of PHP code in a page/post [closed]
- Static Page with php echo [duplicate]
- Show different button text if no content
- Displaying Children of several pages
- How do I fetch a data from an external database into my wordpress homepage
- Error when saving wordpress
- Position a repeated article blocks
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Only display notification on single post
- Add a downloaded JS file to WordPress
- Add options to WordPress backend
- Querying latitude and longitude into google maps correctly
- apply_filters() function
- How to define Og Meta Tags in header using conditions [duplicate]
- Changed URl in General Settings now WordPress site doesnt work
- Using tag to output text in Genesis?
- images in wordpress themes
- WordPress redirect on login
- How do you get a reference to $wpdb in a PHP script
- How do I return an image from a script
- Custom Registration and Login Forms with reCaptcha 2 Validation
- Change Checkout “Place Order” text if cart has a specific product
- php inside HTML via shortcode? [closed]
- display php code in header using wp_head()
- How can I get is_page(Current_URL)?
- Sorting Problem
- “Missing header/body separator” error with wp_remote_post()
- Add a custom user meta data on registration based on user email
- Error resetting database index using ALTER TABLE in $wpdb->query
- 500 Internal Server Error PHP 8.1 Array with wordpress
- why css file not link?how to create permalink?
- How to add different menu items on different menus?
- Nav menù doesn’t display selected pages
- To perform the requested action, WordPress needs to access your web server
- Shortcode Displays 2 times