How to duplicate portfolio section that can be accessed separately through the header menu?

SupportCategory: TA PlutonHow to duplicate portfolio section that can be accessed separately through the header menu?
aasimo asked 5 years ago

I want to add a duplicate portfolio section and want to access it from header. I have made one but don’t know how to add another one. How to do this? 

Thanks,

0 Answers
Rohit Staff answered 5 years ago

Hello, the following is the steps you need to do.
For back-end

  1. Create a new post type for the duplicate section. Open the file “inc\post-types\register-portfolio.php”, create a new post type (i.e. project) refer to the existing codes (line 3-19 ). 
  2. Add new setting area for the duplicate section. Open the file “inc\redux-config.php”, add setting area for the new section refer to the existing codes (line 281-320 ).

For front-end
Open the file “template-home.php”, get the new post type posts and display them refer to the existing codes (line 76-204 ).