896 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
Gareth_Gillman says

I have a few issues on a WP site, and come up stuck.

1) I have 2 areas in a site, posts and pages. I need to display the total number of posts, and pages to the visitors. For the posts I have used wp_count_posts but can’t find the same function for pages. I need to display the number of pages that are child pages.

2) I use a plugin called category images to display images next to the category list, now it works fine on the homepage but doesn’t display the images on any other pages.

I also have the need for someone fluent in jQuery to help me with a function in the site, basically if you look at this site, the voucher code is hidden when until you click the get code button… I want something similar.

Thanks in advance

896 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
Gareth_Gillman says

bumppp anyone able to point me in the right direction?

3436 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

I have a few issues on a WP site, and come up stuck.

1) I have 2 areas in a site, posts and pages. I need to display the total number of posts, and pages to the visitors. For the posts I have used wp_count_posts but can’t find the same function for pages. I need to display the number of pages that are child pages.

2) I use a plugin called category images to display images next to the category list, now it works fine on the homepage but doesn’t display the images on any other pages.

I also have the need for someone fluent in jQuery to help me with a function in the site, basically if you look at this site, the voucher code is hidden when until you click the get code button… I want something similar.

Thanks in advance

1. erm wp_count_posts(‘page’)

2. ask the plugin author or don’t use a plugin

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
digitalimpact says

1) Number five.

2) what OBM said.

3) is that a paying job, or are you asking for free help on client projects?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by