shagen
Forum Replies Created
-
I think I figured it out. Instead of using the
get_the_ID()
bit of code I was looking around and trying things and tried the following within the loop instead and I have achieved the intended result.$page->ID;
Did you ever figure this out or find an answer? I am thinking about doing something very similar.
Forum: Fixing WordPress
In reply to: Widget content populating outside of widget containerI appreciate you taking the time to take a look. Apparently my eyes were deceiving me after staring at the screen for too long. Extra closing DIV was the issue. Sorry for spending your time on something super simple. That was the issue. Lesson learned: Always check, re-check and re-check again for simple errors.
This one is resolved!
Thanks againForum: Plugins
In reply to: Infuriating ProblemJust had the same problem. Starting showing up after I tried to make the height auto, which in turn made the heigh zero after saving the settings. Once I set the height again, all appears to be normal.
Would be nice if you could set the width and not worry about the height in case you have various image heights say for ads, etc.
Forum: Plugins
In reply to: Creating Tables with Plugins Codex Page Incompleteah… thought I changed that back. However the table is always created no matter what I name it. The issue lies with the fact that after the table is created there is no data getting inserted into it which is supposed to happen in the function named function jal_install_data() however I get an error saying that $table_name is undefined.
When putting the following line in jal_install_data() the data inserts properly.
$table_name = $wpdb->prefix . “liveshoutbox”;
$table_name is therefore not global, correct? Why would they write it like that? Am I initializing something out of order. Or can a function live in a function? Maybe it is supposed to be in the initial function? Thoughts? Thanks for the replies so far. Really appreciated it.
Forum: Fixing WordPress
In reply to: When the Codex is not accurate or updated? Where can I go?The article and in particular the example code in question for me is here…
https://codex.www.ads-software.com/Creating_Tables_with_Plugins
The problem I may or may not be having is that I can not tell if the example code is working properly and it is hard to tell if it is me, or the code. I would assume the problem lies with me but without a complete/full example file it is hard to say. I am newer to PHP and a lot of the time documentation seems to assume more that I know. It seems normal for the codex to give you code snippets and then expects you to know which order to put them in if order is important. This is probably ok but my skills are just not there yet.
You can see my specific problem in the following forum topic…
https://www.ads-software.com/support/topic/creating-tables-with-plugins-codex-page-incomplete?replies=2
If there is in fact something wrong with the example code that could potentially throw others off or when I do get it working as they intended how can I add to that codex page to give others a chance at the full working source file? That way I can pass on what I learn.Thanks for your replies thus far! Excited to dig through the link you passed on alchymyth and see if that can help expand my knowledge a bit more.
Forum: Plugins
In reply to: Creating Tables with Plugins Codex Page IncompleteHere is the pastebin link for the code mentioned above…
Any help would be much appreciated. Thanks!
Forum: Plugins
In reply to: [SMS Text Message] [Plugin: SMS Text Message] Plugin BrokenSame for me. Added widget to sidebar. Subscribed. Checked subscriber list. No users were added. Tried to send a text anyway and still nothing. Does not work from what I can tell.
Also wondering if you need to have a service as the gateway. If so I also see no place to configure.
Forum: Plugins
In reply to: Post Playlist Plugin?Looking for something similar, so anything you learn here would be much appreciated. Here is what I am looking for. Ability to add posts to playlist or certain elements of a post to a playlist, say a video for example.
Wanting the user to be able to create multiple playlist and then add/delete/manage these playlist. I imagine this will take more than just a plugin but not sure.
Thoughts about existing plugins would be great or even some ideas on how one might approach. It is almost like a shopping cart in which you can add posts instead of items and then save it. Thanks for your time!
Forum: Themes and Templates
In reply to: Want to display different single page layouts based on post tag?Thank you thank you! Stared at that page for a while and was so stuck on is_tag() that I did not read the others close enough. Still getting the hang of all the syntax so your reply and time is greatly appreciated. has_tag() is working great. Here is what it looks like in case others need the exact code…
<?php if (has_tag('resource')) { ?> Display resource loop here and layout here. <?php } else { ?> Display all others here. <?php }; ?>
Forum: Fixing WordPress
In reply to: Mashable Explore Filtering / Dynamically filter loop by categoryI have almost completed this with various help from forums as well as other external websites. Will be trying to post somewhat of an explanation and at least resources with other items that helped me along the way to solving this problem for others to hopefully benefit from.
I ended up making a pretty cool double filtering system. However if you are looking for the single tag cloud like the mashable/explore page that solution will be wrapped up within the future reply as well. Thanks to everyone who helped on those other forum topics and sites! I love the WP community
Forum: Hacks
In reply to: category__and not working after 3.1 updatescribu answered my last posts question at the following URL…
https://www.ads-software.com/support/topic/limit-multiple-categories-tax_query-by-tag-not-working
Forum: Plugins
In reply to: limit multiple categories tax_query by tag not workingThat is like super hero stuff and it works perfectly! Thanks for the time.
Forum: Hacks
In reply to: category__and not working after 3.1 updateIn the tax_query part I am wanting to limit both of the arrays to only show posts with a certain tag but am not able to do so. Outside of that it all works. I have started a new post here if you would like to view the code that I have been struggling with. Thought that since you had experience with this code that you gentlemen would have insight on where to start or how to solve. Thanks for the time!
Thanks for the Codex reference. I had in fact looked over that page already and it was not working properly for me but I reviewed it on your suggestion just to be sure. However I did end up searching ‘category__and’ not working in Google and came across this post which ultimately solved my problem…
https://www.ads-software.com/support/topic/category_and-not-working-after-31-update