Custom Post Type Permalinks

Plugins thirty-one 16.9K Reading mode

Custom Post Types This is a new function added to WordPress 3.0. It is a new practical function added by WordPress to narrow the gap with other CMS programs. It is also the weakest link in previous versions of WordPress.

The so-called Custom Post Types are to create new post types and manage them in addition to WordPress normal log posts and pages to display special content.

This function is widely used in overseas CMS type Wordpress themes, and rarely seen in domestic free themes, HotNews Topic Integrated with this function, they are: bulletin, video, photo album. The reason why there are few similar functions in domestic themes may be the lack of easy to understand Chinese tutorials. There are many English tutorials abroad, but there is a language barrier, so we can only forget about the foreign countries. When we have time, we may summarize and write a Chinese version of the tutorial for the convenience of Chinese designers.

To get to the point, since the type of custom posts is different from normal blog posts, after modifying the fixed link format, these custom post links will not change as you wish, and WordPress does not provide setting options for this by default. This problem is often raised by children's shoes, which has been studied before. It seems that the program file needs to be modified, which is troublesome and not suitable for the public. It can be easily solved by using another powerful function of WordPress - a large number of plug-ins.

Custom article type fixed link setting plug-in: Custom Post Type Permalinks

After installing and enabling the plug-in, open the setting - fixed link setting page again, and find that the bottom has added“ Permalink Setting for custom post type ”Options, as shown in the figure below.

Take my HotNews topic as an example. There are three custom article types. Enter the same format as the normal custom link in the text box.

Tips

The following two options need not be checked.

If 404 pages appear when you open these custom logs after adding custom links, you can click Save Changes several times to solve the problem.

Here is also a reminder: articles of custom type with different themes will not be displayed after changing other themes, including the foreground and background. If you use articles of custom type as the main theme (many foreign themes are the same), you should consider it more, or your hard published log will no longer exist after changing the theme

In addition, we recommend a plug-in that can convert custom article types to common logs: Post Type Switcher

It can facilitate conversion between different types of logs.

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments thirty-one    Visitors twenty-eight    Author three
    •  Dega
      Dega two

      Follow Brother Bird to learn to become a couch

      •  Gothic revival
        Gothic revival four

        Look at the second floor

        •  Endemic rice
          Endemic rice one

          Thank you. The question asked the day before yesterday will be solved today, Brother Bird V5

          •  ss
            ss zero

            The blogger should spend your bullshit time cleaning up the CSS and JS files with bloated themes. The most basic things are poorly done, and it's not modest

            •  Article blog
              Article blog three

              I don't really understand this

              •  girl student
                girl student four

                Find a plugin to set font

                •  Yasheng pine furniture
                  Yasheng pine furniture zero

                  Customized article type and plug-in WP. The article with a different theme is gone

                  •  Walnut
                    Walnut zero

                    Thanks for sharing

                    •  girl student
                      girl student four

                      It seems better to use less

                      •  wmtimes
                        wmtimes seven

                        The plug-in is not too big. The wp comes with all of them.

                        •  Yimi
                          Yimi six

                          Blogger, exchange a friend chain!

                          •  Junan
                            Junan one

                            Fixed links still dare not move at will

                            •  Leaf Paradise
                              Leaf Paradise zero

                              The picture hangs

                              •  Door softness
                                Door softness five

                                Brother Bird, why have the dozens of tags on my website's homepage never changed?

                                •  MAGI
                                  MAGI four

                                  Please ask Brother Bird how the blue words in the box are realized. Thank you!

                                    •  Robin
                                      Robin

                                      @ MAGI When editing an article, select a paragraph of text and click the quotation mark icon on the editor

                                    •  Liu Tongya
                                      Liu Tongya zero

                                      Brother Bird's article is very good

                                      •  Qi Bai
                                        Qi Bai zero

                                        This can be available. Now the custom fixed links are perfect

                                        •  york
                                          york two

                                          Brother Bird, can some plug-ins only be referenced like this [wp_xxxxxx]? You must create a new page. Is there any way to refer to the home page or any page?

                                          Ask for help!

                                          •  Endemic rice
                                            Endemic rice one

                                            Brother Bird seems useless? Still: 4% e5% a8% b1% e4% b9% 90% e5% 9c% 88.html

                                            I only define video page settings as:/% category%/% post_id%. html

                                            What's wrong with Brother Bird? Ask for advice

                                            •  Soft fan
                                              Soft fan one

                                              As long as it is static

                                              •  Ninth technology
                                                Ninth technology one

                                                Ha ha ha, mine is OK.

                                                •  kpopcomedy
                                                  kpopcomedy six

                                                  Brother Bird, after using Custom Post Type Permalinks, my album classification is automatically“ http://www.runningman-fan.com/gallery/runningman-gallery ”Become“ http://www.runningman-fan.com/.html/picture/gallery/runningman-gallery ”, why is this? Picture articles under album classification are normally converted into html

                                                  •  jf
                                                    jf zero

                                                    Ah?! Are you all normal? When the post is set to/% post_id%/, all Chinese URLs will be displayed in the non login status??????

                                                    •  Good store for shopping life
                                                      Good store for shopping life four

                                                      How to add icons to links in articles

                                                      •  two hundred and thirty-four thousand two hundred and thirty-four
                                                        two hundred and thirty-four thousand two hundred and thirty-four zero

                                                        Custom Post Type Permalinks is useless

                                                        •  Complete website of boke123
                                                          Complete website of boke123 five

                                                          Recently, I was worried about the fixed link of the announcement. I didn't expect such a good plug-in. Thanks for sharing. It has been transferred

                                                          •  Ali Stage
                                                            Ali Stage two

                                                            Just came in through Baidu search. I use Custom Permalinks, a plug-in for changing fixed links, and Multiple Themes, a dual theme plug-in. The problem we found was that the modified pages using Custom Permalinks were displayed using the subtheme. When we logged in on this page, we opened the http page and skipped the rules of https for our entire site. Therefore, although the account is logged in, it still shows the status of not logged in. You need to manually enter or click the link in another site to see the successful login.

                                                           anonymous

                                                          Comment

                                                          Anonymous netizens
                                                           :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                                                          Drag the slider to complete validation