• So I want to create a page. In the control panel I create a new page. Which of the codex codes do I use to access this content in my php file?

    Being new to WordPress I am now seeing how great it is – after several full days of reading. Good thing I’m a coder or I’d be lost lost lost. I’m still amazed at how heavily it is weighted towards creating Themes for a blog – hardly any information on how to use it as a CMS – until you land on “Codex Pages”.

    Someone still needs to combine the info into a simple “how to” get started making a CMS with a blog – instead of a blog with a CMS. Maybe I’ll do it myself when I finish figuring it out.

    Charles

Viewing 9 replies - 1 through 9 (of 9 total)
  • If you could be more specific about what you want to access and in what scenario i could likely answer the your question… ??

    The codex covers most things, and the themes deployed with WordPress give bundles of examples throughout their code…. disect a theme and you’ll know a good portion of the functions already…

    Thread Starter charles_i

    (@charles_i)

    OK so for the home page of my website I have two links at the top of a page which jump down to two articles on the same static page. I’ve set my home page to static index page. I have created a page called home (or should it be called index?) in the control panel and put the article in it. Now, how do I know what codex to put in my index.php file to access the article I just added in the cpanel?

    And… how do I add jump links at the top of the page in the control panel? The only thing I have read about links are on the sidebar – and they link to another page.

    Problem is most of the examples are way more complicated than this. It’s not a blog, I don’t need to loop through posts and I don’t need comments and all the other bells and whistles (yet). I’ll add a blog later. I just want to start with a simple page.

    Thanks
    Charles

    When you say jump links do you mean links that jump to an area of the page already on the screen?

    If so, then you’re referring to anchors. There’s nothing to stop you writing a page or post in HTML mode and creating the anchors and just pointing your links to the anchors…

    <a name="some_anchor_name"></a>

    Where some anchor name is a name for that given anchor…

    <a href="#some_anchor_name">Some link</a>

    WordPress is a blogging tool, so if you don’t want half the stuff showing on a given page, then you’d need to comment out or remove what you don’t want in the theme files…

    Thread Starter charles_i

    (@charles_i)

    Yes I mean anchors – but I want to use WordPress as a CMS tool – which they say can be done in “Pages” – for non-technical people. I know how to write anchor tags in HTML but I wondered if there is something built-in, or that I can add, that would generate the anchor in the formatting window.

    And back to my original question, if I create a new page in the cpanel what code do I use to find it in my index file?

    Thanks
    Charles

    What do you mean by…

    if I create a new page in the cpanel what code do I use to find it in my index file?

    If you want the content on the index, just use a post instead. Unless there’s something you specifically need a feature that pages offer..

    Thread Starter charles_i

    (@charles_i)

    Sorry, I’m new to this and find it extremely confusing. As far as I can tell a blog has all the blog elements – whereas a page can be used as a stand alone CMS tool – that’s what I want. So I create a page in what I am calling the cpanel (which is whatever you call the admin tool at wordpress/wp-login.php – it doesn’t seem to have a name).

    I go to Pages – New – and make one – add a title and some content. It appears in the database as a row in wp_posts. Now, how do I put that content into a php page so that I can put it live? Can’t seem to find this out.

    Thanks

    https://www.yoursite.com/?page=yourpagename

    I find it very strange you’d want a CMS or a blogging tool for a single page though…. way overkill…

    Thread Starter charles_i

    (@charles_i)

    It’s not for a single page – and thanks, but I don’t want a commercial CMS service. It’s for a community website (ie no money available) – so there are several static pages and maybe ONE blog. Isn’t that the way a website usually works? Home, About Us, Minutes of Meetings, etc. But WP seems to be all about blogging – yet it says you can use it as an excellent CMS tool – right on the Pages Codex page. But exactly HOW that is done is a mystery.

    Charles

    Pages are created by going into the admin section, selecting Pages from the left-hand side, Click Add new…

    Away you go…

    Your pages are then accessible via…

    https://www.yourwebsitename.com/?page=example.

    Have a read through here.
    https://codex.www.ads-software.com/Working_with_WordPress

    Info on pages.
    https://codex.www.ads-software.com/Pages

    You can pick and choose what parts of WordPress you use, it’s really quite straight forward if you read the docs that explain what each area is for and what function it serves. You simply remove or disable what you don’t need.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘which codex do I use for pages’ is closed to new replies.