sigotratando
Forum Replies Created
-
Forum: Plugins
In reply to: [Maintenance] Not seeing what I chose and changedApparently, I have TWO maintenance plugins. Don’t know how that happened.
The short code only works when you place the shortcode in a post or a page. But I want to go into the sidebar.php and place the widget there so that it shows up on every page in the sidebar. Modifying the php pages that make up the system is the “template”, right?
In any case, I’d not heard of do_shortcode … it looks like JUST what I’m looking for — so thank you very much!!
I wanted to make a point of clarification about where each widget is in my beta.
The Links widget is in the middle of the sidebar labeled Social Media — where there are supposed to be only two images: Facebook and MySpace.
The Sponsors-Slideshow widget is at the bottom of the sidebar labeled Our Sponsors.
Forum: Plugins
In reply to: [Plugin: (a) Slideshow] Slideshow link to a urlHey makwak, did you get some resolution (obviously not via this forum) to your question? I’ve been looking for the same, and have found a couple (such as WP Carousel), but that tool does not work well with images of different widths (for instance). (a)Slideshow seems to work well with images of various sizes, but I, too, need them to link to other URLs — I’d like to present the logos of sponsors that, when clicked, go to the sponsors’ sites.
Forum: Themes and Templates
In reply to: Test if page has subpagesActually, I found the answer on Template Tags/wp list pages
Forum: Themes and Templates
In reply to: Test if page has subpagesOops. Forgot to close the anchor tag. Sorry!
Forum: Themes and Templates
In reply to: Test if page has subpagesDrat! that is not working for me at all 🙁
In my case, I want to show a heading followed by the list of children (of pages, not posts); and I want to hide the heading if page has no child pages.
I can already hide/show the children, but I want to do nearly what Lenuam is doing except I just want to return true or false if the page has children. So I took the code above and tried to create a function out of it:
function has_subpage(){ if( is_page() && $post->post_parent){ $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); }else{ $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); }; if($children){ return true; }else{ return false; }; }Unfortunately, all I ever get returned is a 1 even when the page has not children. Here’s what I’m working on (please ignore the formatting — I’m just trying to get the logic in before applying a template and style):
Top of the right margin, it will say “Pages within BBQ”, after which is a “Subpage value: #” where I’m testing the function.
Now click Lodging on the global nav — Lodging has no child pages. The Subpage value still reads 1. Why wouldn’t it read 0?
Thanks!
-SigoForum: Plugins
In reply to: Error while installing TinyMCE pluginI just looked at the CKEditor, and it doesn’t look nearly as rich as TinyMCE. I’m hoping someone will be able to help us out on TinyMCE.
Forum: Fixing WordPress
In reply to: Category template from page linkOh, one other link I tried:
http://www.domain.com/news/category/press-releases.Forum: Fixing WordPress
In reply to: Category template from page linkHi MichaelH,
I went to the FAQ you describe, but the topic was about linking to pages, not category templates.I have visited http://codex.ww.wp.xz.cn/Template_Hierarchy, under Examples, and tried following those instructions. For instance, you reach the blog by doing to http://www.domain.com/news I have a category template called category-press-releases.php. According to these instructions, the href to the category page should be:
http://www.domain.com/news/press-releases. But that does not work. Next I tried
http://www.domain.com/news/category-press-releases.php, and that did not work. Next I tried
http://www.domain.com/news/?cat=9. That took me to archives for that category, but not the category page template. So, I’m with jrogers: I still don’t know how to link to a category template.I’m seriously frustrated and could use any advice you can offer.
Thanks!
Forum: Installing WordPress
In reply to: Call to undefined function get_header()Greetings! I had my theme working for weeks, having put it in its own directory and all. Then I changed the CSS and some navigation (pertaining to the rest of the site wherein the blog is found), and now I get this error message. Everything else about the pages is exactly the same except these things, yet I get this error. Advice?
Thanks!!
-ron