Loren
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Combining the author and post_type in an arrayDid you ever get an answer for this issue? I have been struggling with the same thing.
Forum: Fixing WordPress
In reply to: Custom Post Type Capability ProblemsI figured it out. Besides
'edit_posts' => 'edit_submissions'
I needed to have'edit_posts' => 'edit_submission'
– singular.Forum: Fixing WordPress
In reply to: Custom Post Type Capability ProblemsThe Custom Post Type is created but with errors when publishing. Here is a link to a sample “Student Submission” created by a test “Student” user.
Forum: Fixing WordPress
In reply to: WP 2.9 image insertion no longer allows url to off site resourceI too am struggling with this – particularly when inserting a gallery using the shortcode. There is no html to delete.
Forum: Plugins
In reply to: [Plugin: Registered Users Only 2] Suggestion to improve this plugin.Hi Jehy,
Thanks for the updated version. I am using it with BuddyPress on an experimental site. So far it is working nicely.
I do have a feature request. It would be nice to be able to customize the message on the login page (the one you corrected above). I have hacked the plugin for now to create my own welcome and instructions etc. But I will have to do that every time the plugin is updated.
All the best!
LorenForum: Themes and Templates
In reply to: Checking for the existence of an active page templateThanks, Michael! I think I got it. I’m pretty new to php but hopefully learning. This is what I came up with.
function check_page_template() { if ( is_page() ) { $page_template = get_post_meta(get_the_id(),'_wp_page_template',true); echo "The page template is $page_template for this page"; } else { echo "This is not a page"; } }
Forum: Themes and Templates
In reply to: Checking for the existence of an active page templateIn my searching I have come across mention of postmeta information
_wp_page_template
. Is there a way to access the table information for_wp_page_template
to determine if and what template page is being used?Forum: Themes and Templates
In reply to: Checking for the existence of an active page templateI have the same question. With
is_page_template('template-name.php')
you have to know the name of the template page. What if you want to evaluate whether or not a page is using any template? Is there a way to do that? Something likehas_page_template($template-name)
.Forum: Plugins
In reply to: [Plugin: Page Template Extended] Plugin works with latest version of K2 themeWhat would be really nice however is if the plugin would evaluate if there is already a template file assigned to a page (via the WP admin) and allow the assigned template to override the
page-id.php
template. Currently that does not happen.Forum: Fixing WordPress
In reply to: displaying excluded posts with query_postsHi Shane,
Thanks for the response. The link you included doesn’t particularly address my dilemma. Using query_posts I am already excluding categories from my home page (cat=-3) but am trying to figure out how to “re-include” posts that are in the excluded category. I was trying to do that by adding a non-excluded category to the post but that does not seem to work.
Maybe it would help to describe how my application of this works. I have multiple authors and one author wants all of his posts to appear in a particular template page (say cat=3 template) and not to appear on the home page – this works fine. But he wants the liberty to allow certain specific posts to appear in both his template as well as on the home page. It is with the re-including of such a post that I am having difficulty.
Any suggestions?
LorenForum: Plugins
In reply to: Multiple instances of PHP Code Widget fail in 2.8?I am running WP 2.8.4 with a variety of sidebars and a number of instances of PHP Code Widget 1.2. I deleted one instance of the widget and ended up with all instances being deleted at the same time.
Forum: Plugins
In reply to: [Plugin: K2 Hook Up] Inclusion of PHP codeHi Eric,
I am trying your In The Loop plugin as I wanted to add Lester Chan’s wp-print plugin and wp-email plugin to my posts in the K2 theme without hacking the theme. I do not seem to be getting anywhere. I entered the php code<?php if(function_exists('wp_email')) { email_link(); } ?>
but got nothing. Am I doing it wrong?
Thanks,
LorenForum: Plugins
In reply to: Registration PlusYou might want to try Role Scoper. It has a bit of a steep learning curve but it has some awesome possibilities.
Forum: Fixing WordPress
In reply to: Multiple Page categories – how?Once again, thanks Otto! I guess I will have to wrap my brain around this some more. I appreciate your input.
All the best!
LorenForum: Fixing WordPress
In reply to: Multiple Page categories – how?Thanks for responding so quickly Otto! Here is what I am wanting to do.
I am designing a CMS site with several sections where each section will have its own look and feel and some section-specific content (held in pages). However, some content will be common between the various sections. I would like to be able to be able to have each section maintain its distinct look and feel and yet be able to draw from the common content. If I design any kind of a page template for the pages that have this common content then that is what will be retained no matter which section it is viewed from and that is what I want to avoid.
Am I asking for the impossible? ??
Loren