• Hi

    I am looking for a way to modify or create a post link that will auto populate the title – the visibility , category and tag ..

    For example the standard link

    myweb.net/wp-admin/post-new.php

    would be

    myweb.net/wp-admin/private-goals-new.php

    and create a a post with the auto populated title.

    Goals : 09/26/2016

    and create the visibility as private and set the category and tag to : goals

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not sure which way you’re going with your question. It seems you’re basically saying you want the link wp-admin/private-goals-new.php to create a new post with certain properties set, based on the link parameters. Is this correct? If so, that is not possible as presented because the target file of the link must lead to an existing PHP file or you’ll get a 404 error.

    It is possible to create new posts by sending a specifically formed request, the WP REST API can do this, but the end point is predetermined, the criteria used for post properties is passed in other portions of the request.

    Your question might also be taken to mean you want to create a particular post slug based on selected post properties anytime a new post is created. This is possible, but the resulting link will never include /wp-admin/, it would appear as a normal permalink. This was my first take of your intention, but I now don’t think this is what you’re after, correct?

    Thread Starter rleon

    (@rleon)

    Hi Bc

    Your first answer was correct. I want to create a few new post links with predetermined titles , categories , tags and visibility. End goal is to have a link click on it and go straight to blogging without changing the settings.

    Moderator bcworkz

    (@bcworkz)

    Then I don’t have much to add to what I’ve already said. You could conceivably create all manner of schemes to accomplish something similar, but the URL end point needs to always lead to an existing resource, which does not happen with the scheme you suggest.

    The REST API is as close as something existing will come. A link click could initiate a JavaScript routine to manage the API interface, so from a user experience standpoint it’s the same thing. It’s just that one cannot create a post creation URL on the fly, which would be problematic anyway, you’d get tons of spam posts by enabling something like that.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Modify Title , Visibility etc .. per link’ is closed to new replies.