Hello. Glad that my plugin helped you. Headaches suck! π
You question can be easily solved by including the list (that should contain only the private entries) in the page template.
Put this code in the template file where you want the private list to appear:
<?php
$current_user = wp_get_current_user();
echo do_shortcode( "[stickylist id='1' user='" . $current_user->ID . "']");
?>
Note that you need to change id='1' in the code above to the ID of you form.
Dude u are the man!!! thanks a lot for your fast reply and once again thanks for a great addon!!
Hey mate, i Just tried it.. and you it really does show, but there is some code showing when i view the stickylist..
<?php
$current_user = wp_get_current_user();
echo do_shortcode( ”
Then the list is shown
“);
?>
and it ends like this.. am i doing something wrong?
You need to put this in the template file (the php file) that you use to display the private page. Edit the file page.php in your theme and put the code there, right after <?php the_content();? >
Okay thanks π IΒ΄ll give it a shot..
Sorry man i still suck at this.. Okay so i added the code in Page.php after <?php the_content();? > where do i find the php file that displays the pages?
That depends on your theme. When a page is displayed a template is used to render the content. I don’t know what theme you are using or what type of page you want the “private” list to appear in.
If you could provide some more info regarding this I’m sure we can get it to work.
Ahh okay im learning something new everyday.. well i use the theme called “pure and simple” i was thinking that i wanted to add a standart resticted page that only logged in users can accress from the side menu. Called something like “Own actions”(Egne handlinger) or something like that, and when the user enters he can see all the actions his done. So they can keep track instead of having to view all others who are signed up aswell..
once again thanks a lot for your help π
Ok, to simplify things have have updated the shortcode to accept a new parameter: showto
The showto parameter has three possible settings: “creator”, “loggedin” and “everyone”
So, in the public page that should display all entries you can use:
[stickylist id="1" showto="loggedin"]
and in the private page (egne handlinger) you can use:
[stickylist id="1" showto="creator"]
Put this shorecode in the normal content editor, not in the php page.
Grab the new version (1.2.7) and see if it works for you.
Again, note that you need to change the form ID in the code above to the ID of your form.
Holy!! wow thats really nice of you mate..
Gonna try it out now.. Thanks a bunch!!
Inga problem. Lycka till!
Okay i added the shortcode on both sites now. There is only my bosses entries, so its hard to tell if it works, but his entries show up on the list when im logged in as admin. Should they do that?
Yes, if you are logged is as admin or editor you will see the entries. Try logging out, or make a test account.
yeah i will, thanks a lot.. π
Works like a charm π Was just wondering is there a reason that Date is not shown in the list eventho i choose show in list in GF? Im using the one where you click the date..