2213 posts
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Germany
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 more
crozer says

Eyo,
I am finishing my first WP theme, and I have a doubt that I consider easy to fix (I have tried, and I feel as if I am so close to fixing/getting it, but it just doesn’t happen).

Anyway, the thing is, I’d like to add a sidebar ‘widget’ (not sure if it’s entirely a widget, because I think a few PHP lines should to the trick) that displays the blog’s about-page (and ideally only that that has been written before the

<!-- more -->
tag).

Thank you very much in advance.
I hope a widget isn’t necessary, as I really would like to avoid one for the moment.

Chris

307 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
  • United States
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
brainbuzzmedia says

It would be a lot easier to just make a widget area and put a text widget in with the “About Us” info.

2213 posts
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Germany
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 more
crozer says
It would be a lot easier to just make a widget area and put a text widget in with the “About Us” info.

Hmm.. I suppose. I just wanted to make the theme incredibly customizable/adaptable.

Thanks.

3135 posts
  • Beta Tester
  • Bought between 500 and 999 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 1 000 and 5 000 dollars
  • United States
  • Won a Competition
Daniel_R says

I need your help pumpkins? that’s a weird title name for a thread, chris…lol

629 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • United States
VagrantRadio says

I’m fresh out of help pumpkins, but you can have my help squash and zucchini.

374 posts
  • Bought between 10 and 49 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
_rohan says
I’m fresh out of help pumpkins, but you can have my help squash and zucchini.

Hahaha, that’s funny :-)

@OP: This isn’t tough.

Step 1: Add an option to your theme options for the user to choose which page.

Step 2: Use the page ID, and use the get_page() function to get the page http://codex.wordpress.org/Function_Reference/get_page

Step 3: Use the post_excerpt from the returned object to show the content.

Step 4: Optionally, use the get_permalink() function to get the permalink. http://codex.wordpress.org/Function_Reference/get_permalink

Good luck :-)

2213 posts
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Germany
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 more
crozer says

Thanks a bunch. Everything is working accordingly now. The only thing bugged, is the fact that post_excerpt does not support page-excerpts (as far as I know), and thus, post_excerpt of a page does not echo anything out, unless I use post_content (but then I have the whole page echoed).

Any ideas?
Thanks again :)

536 posts
  • Croatia
  • Has been a member for 5-6 years
  • Sold between 10 000 and 50 000 dollars
  • Bought between 100 and 499 items
  • Referred between 50 and 99 users
  • Exclusive Author
darius9000 says

pumpkiiiiin! it’s meeee, it’s meeeeee! :D

by
by
by
by
by
by