Jump to content

Recommended Posts

I know this is possible, but somehow the terms i am using to search for this must be completely off...

 

I have a directory in, let's say /public_html/posts -- and this directory is filled with individual news posts, each having their own PHP file that contains what amounts to a DIV with some Facebook OG tags thrown in for good measure (that I am hoping takes precedence over what is declared in the <head> section of my header include, but am willing to shrug off). I want to be able to display all of these individual post pages in order by filename -- perhaps with the added ability to limit the initial amount of posts visible to a certain number, and a 'show more' button which then displays the remainder of the folder's contents.

 

I built my first 'php-enabled' site about a month ago, and my knowledge at this point is primarily limited to includes and fiddling with code snippets with mixed results -- so, in essence, I know nothing.

 

I realize that this is probably not the best way to go about giving my site 'canonical links' (in that my request doesn't do that, at all), the primary reasoning for this is for SEO-like ability and to give each news post it's own Facebook sharing options. If someone has any input on a better method or insight, i'd appreciate that just as much. Thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.