| User | Post |
|
4:48 am 13 Feb 2008
| Lokesh
Guest
| | | |
|
| |
|
|
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
|
|
|
|
|
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
| | | |
|
| |
|
|
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
| | | |
|
| |
|
|
I forgot to mention - Please send the forum password by email.
Thanks!
|
|
|
|
|
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
| | | |
|
| |
|
|
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
|
|
|
|
|
Sorry? Suggestions about what?
|
|
|
11:29 pm 13 Feb 2008
| Lokesh
Guest
| | | |
|
| |
|
|
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?
|
|
|
|
|
Styling, positioning etc., is all theme related. Afraid you need to address that through your style.css file from your theme.
|
|