• navotera

    (@navotera)


    hi.. i want to develop wordpress by implementing these feature :

    1. first page of my wordpress homepage is only show spesific tag or category
    2. only show tag or category list based on spesific user, the others are hidden
    3. when someone click https://myblog.com/username it would show every content he/she created and his tag or category.

    how can i accomplish that. what plugin should i install ??

    thanks

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

    (@bcworkz)

    You can manage what posts are displayed by using the “pre_get_posts” action to alter the main query for any page. Set the “author_name” argument to whatever the author’s “nicename” is. You don’t really need tags or categories to do this, post queries can be managed by author alone. Be sure to exclude setting the author for backend queries where the user is an administrator, otherwise they’ll only be able to see their own posts.

    Use the Rewrite API to manage custom permalink structures. It may also be necessary to filter permalink output to ensure the links are correctly built. “the_permalink” filter should work in most cases. If you are always going to restrict queries by author, be sure it’s always available in whatever permalink scheme you use. If it always takes the first position in all links, it makes composing a regexp for the rewrite rules much easier.

    Thread Starter navotera

    (@navotera)

    thank you sir

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wordpress user content spesific’ is closed to new replies.