0

I have a three pages. On front page I want to show some custom test about page1,link to page1, custom text about page2, link to page2, custom text about page3, link to page3.

And then I want a another page that includes texts from all three pages on one page-template.

Is the correct way then to make widgets of these three pages?

  • You can use any 1 sidebar for all three pages and with widget logic you can add condition where these widget should display. wordpress.org/plugins/widget-logic – Gangesh Nov 3 '14 at 12:44
  • If you already use Jetpack Plugin for Wordpress, you can use Widget Visibility feature for create conditional rules on widgets – Serkan Algur Nov 3 '14 at 12:50
  • I'm not using any plugins with widget-support. But my question is more about if I have to widgetize my pages in my scenario? I guess the answer is a simple yes then? – bestprogrammerintheworld Nov 3 '14 at 12:55
1

Use page templates and template parts. On your Front Page, you include the Texts as Template Parts:

 Front Page
+---------------+---------------+---------------+
|    Page A     |    Page B     |    Page C     |
+---------------+---------------+---------------+
|  Link Page 1  |  Link Page 2  |  Link Page 3  |
| Text 1 (TP1*) | Text 2 (TP2*) | Text 3 (TP3*) |
+---------------+---------------+---------------+

Then you reuse them in your other (page) template:

 Other Page
+-----------------+-----------------+-----------------+
|                       Content                       |
+-----------------+-----------------+-----------------+
| Template Part 1 | Template Part 2 | Template Part 3 |
+-----------------+-----------------+-----------------+

That's maybe easier than creating widget areas and fetching static text from the DB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.