Grabbing a page from WordPress

  • How to hide a page in WordPress?
  • How do I then redefine it as a DIV on, say, another page?

Context

I'm trying to get some year-end tax deductions for my freelance business and that's why I'm donating WordPress sites for churches. Now, unfortunately, I've found that a few pastors aren't very computer savvy, and even though WordPress is pretty straightforward about tech guys like you and me, they're a little confused. So I commented "Posts", "Comments", "Plugins", "Widgets", "Users", "Design" and left nothing but "Pages" (New, Edit, Delete) and Media Gallery ". Then I took a theme that showed the Pages tabs at the top of the page, like a normal website.

My hope is to name a specific page like Sidebar1 as its title. However, instead of being shown as a tab, it will be hidden. It will then be redefined as a DIV inside the Home page. If the pastor accidentally deletes sidebar 1, all he has to do is re-create it again and reopen it.

This is not about the Wordpress website, but the Wordpress installation.

I changed admin - I just need to change the interface.

I could figure it out on my own, but for the sake of timing, I wondered if anyone had done this already?

Your help can help me get it done just in time for Christmas for some churches. Thank.

+1


source to share


2 answers


Someone named "greyhoundcode" on another forum answered me, so I thought I'd post it here.

His answer ...

If, for example, you have four pages:

  • home
  • ABOUT
  • Side panel
  • Contact


And you intentionally want to exclude the sidebar page from the navigation part of the page, you can exclude it like this:

wp_list_pages('sort_column=menu_order&exclude=3&title_li=');

      

You can get it on the page where you want to submit it using the wp_query statement.

... This is exactly what I need.

+3


source


I think the most logical way is to customize the theme. I find the theme system is complex and can handle such a thing easily. At least if I understand the problem.



Be careful when modifying the base system. WordPress is known to release new security fixes frequently.

+1


source







All Articles