On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of the first beta of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Using pcp_list_pages_by_category function???

UserPost

4:48 am
13 Feb 2008


Lokesh

Guest

1

Hi,


I did not get the password in the email. It has been more than a day. I tried to register today but it does not let me do this because this email is already in use.


I activated the the category plus plugin. I can see the categories but I am having problems using the pcp_list_pages_by_category function. In the instructions, it does not clearly say which file we should put this function with the parameter and also what is the full syntax for this.


I have put this in the sidebar.php file. What is the correct syntax? Should we put php tags around function like the following:


<?php pcp_list_pages_by_category (…, …, …, ……) ?>


Can you please post the full syntax?


Thanks

8:33 am
13 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

I'm sorry you didn't get an email. This seems to be a basic WP problem - their email handling can be very hit and miss although it does seem to be getting better. I can send you a password by email if you still want one.


So - first point is that I can't just tell you where to put the template tag because it is really up to you and your theme. But yes, the sidebar would be a usual place and probably the most common place.


Secondly, yes, you wrap the template tag (as usual) in php tags. Note on your example above you hav eleft out the semi-colon after the closing bracket. basic format is

<?php function_name(parameter list); ?>

Note that closing semi-colon.


As to tha parameters, well they are detailed and described in the read me file that came with the plugin and I can't really do a better job than that. But they all default values (as stated) so you could start by eaving them al oiut and then building from there.


2:46 pm
13 Feb 2008


Lokesh

Guest

3

I put the function with the parameters and I got an error. Does this function replace wp_list_pages() function??


I replaced the wp_list_pages() function and tried and put the semicolon and I got errors i.e. in the sidebar menu, I could see the php code.


I'll just try it with default parameters. i.e. I'll put the following in the sidebar.php file:


<?php pcp_list_pages_by_category (); ?>

2:52 pm
13 Feb 2008


Lokesh

Guest

4

I forgot to mention - Please send the forum password by email.


Thanks!

5:47 pm
13 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

5

yes - I'l email you a passeword. As to the PCP function - when you have decided what you want you can post a copy of the funtion here and I can tell what's wrong with it.

8:34 pm
13 Feb 2008


Lokesh

Guest

6

I put the following code:


<?php pcp_list_pages_by_category( 'Home Loan Mortgage','All',true,true,'<h2>','</h2>',true); ?> 


The sidebar looks so much better with this plugin and this function!


Any suggestions?


Thanks

9:36 pm
13 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

7

Sorry? Suggestions about what?

11:29 pm
13 Feb 2008


Lokesh

Guest

8

I meant suggestions about any other tips and tricks.


I do have one question - Sometimes, the sidebar menu shifts to the bottom. Is it possible to fix this?

11:36 pm
13 Feb 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

9

Styling, positioning etc., is all theme related. Afraid you need to address that through your style.css file from your theme.



Reply to Topic: Using pcp_list_pages_by_category function???

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 10        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

8 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)