backpages
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: php5.ini File appears to be working, but doesn't change WordPressThank you, Sabinooo for the reply. I created a phpinfo() page and put it up and it reflects the updates I made for the larger file sizes. So wouldn’t that indicate that the changes have been made on the server?
I have tried WP_Query, get_posts() and query_posts. In all cases, the content from the Calendar is pulled into the sidebar, even though I am specifically querying one single post, that with the ID of 3180. It is “the_content()” which is causing the conflict. If I just pull in “the_title()” it pulls the title from the 3180 post fine and everything is good. However, I need the content from this 3180 post to appear in the sidebar. Surely, there must be a way to do this. There appears to be some conflict with this Calendar system. Thanks again, for any help.
Hi kinna28, thanks for your response.
The 3180 we are referencing in our code is a specific post. We are wanting to pull in the content from this post, and this post alone, to the sidebar area. We do not want anything related to the Calendar here. It is simply a static post with content. That is why I do not understand why it is also pulling in content from the Calendar. I will try using get_post() instead of WP_Query() and see if that makes any difference.
OK, so I’ve made some progress sorting out the problem here. I’ve at least found the problem!
In the sidebar for this page we use a WP_Query to pull in information about “Important Dates.” This information is in a post with an ID of 3180.
When I remove that WP_Query the calendar works fine and is not being duplicated in the sidebar.
Which is great, but we really need to pull in that other information in the sidebar and I don’t understand why it is conflicting with the calendar. For some reason when this query is run it is also pulling in the calendar content, along with the content for the important dates.
Here is the code we are using to pull in the information for the sidebar. Any insight would be greatly appreciated! Thank you!
<li><p>IMPORTANT DATES</p> <?php $new_query = new WP_Query( array( 'p' => 3180, 'posts_per_page' => 1) ); ?> <?php if ( $new_query->have_posts() ) : while ($new_query->have_posts()) : $new_query->the_post(); ?> <div id="theimportantdates"><?php the_content();?></div> <?php endwhile; else: endif; ?> <?php wp_reset_postdata(); ?> </li>
Benjamin:
https://www.watkins.edu/about/calendar/Hi Kinna28: Thank you for your response. We are not using any shortcode or widget in the sidebar. That is what is so weird. The calendar appears on the page, where we are using shortcode, but it also appears in the sidebar and I can’t figure out why it appears there as well.
Thanks for the link, Benjamin. I will try that and see if it isolates the issue.
Thank you, Jeremy! That works perfectly.
Update from the folks at ACF:
“ACF only stores the ID of the attachment, so if you’re accessing the meta_key directly that’s all you’ll get.
“I did a quick look at the information on this plugin and there’s no information on how to display images other than the featured post image using this plugin.
“If you can find out if this plugin will display other images in custom fields and what information needs to be stored in the postmeta table you can create an acf/save_post action to create the field it needs.”
So, can Ultimate Posts Widget display other images in custom fields? If so, what do I need to do?
Thanks!
Thanks, I will give that a try and let you know how it goes.
Forum: Plugins
In reply to: [Simple Lightbox] Simple Lightbox Not WorkingThank you! That worked.
Forum: Hacks
In reply to: Form Causing a 404 errorJames: I finally figured out the problem on my end. It took me hours of troubleshooting but I finally figured out it had to do with the name of an input field. One of the fields on my form used “name” for the “name.” It looked like this:
<input type="text" name="name" />
When I changed it to something else, everything worked. I’m assuming there was some kind of conflict with the filed being named “name” from within WordPress. So, I changed it to:
<input type="text" name="thename" />
and it’s all good now. Hope this helps.
Forum: Themes and Templates
In reply to: Last Item Of A WordPress MenuThanks for the input everyone. jQuery seems to be the best solution here, so that’s what I’m going to go with.
Forum: Themes and Templates
In reply to: Last Item Of A WordPress MenuThanks, Root. I was hoping there might be a native WordPress solution. I’m hesitant to use the CSS nth-child since it is STILL not supported by IE. I guess if there’s nothing within WordPress I will go with jQuery, as that will work in IE. Thanks again.
Forum: Everything else WordPress
In reply to: RSS Only Showing A Portion Of PostsExcellent! Thank you very much. Another question if I might. We are using two “custom fields” as part of each post. The information in those fields doesn’t seem to show up in the RSS feed. Is that to be expected, or is there a way to have that information be a part of the post in the feed? Thanks again!