corematt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How To: Get Link to Post’s associated Media???I received an answer offline that seems to be working for me.
I’ll include it here in case it might be of help to anybody else<?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'order' => 'ASC', 'orderby' => 'menu_order' ) ); $myAttachment = wp_get_attachment_url(current($images)->ID); ?>
echoing $myAttachment gave me the URL that I needed.
Forum: Fixing WordPress
In reply to: Can’t update css in themes, reverts back to normalI too was faced with the same problem when running wordpress on a server hosted by Apache. I resolved this by giving the “Apache Account” modify permissions on the “wp-content” folder.
HTH
Forum: Fixing WordPress
In reply to: How do I change the link that an RSS feed goes to?Hate to answer my own post,
but I think I found a simple way to accomplish this.https://codex.www.ads-software.com/Template_Tags/wp_list_bookmarks
Forum: Fixing WordPress
In reply to: How do I change the link that an RSS feed goes to?Thanks esmi;
The multiple loop is working well for this.Does anyone know perchance,
where I might be able to find a similar example for ‘links’ as opposed to ‘posts’?(I’m now trying to accomplish the same thing where I constrain the links shown in a section of the site to being those of a specific category, and finding it hard to find a good example, namely because of the fact that the word ‘links’ shows up on so many pages in a different context. The links widget works fine for this, however, I also want to constrain the number of links that will be displayed… for instance, only showing the most recent 5 links for that category. This would be for the sake of tidiness on the main page. From there, I would want a link from the header of that section to a view showing ALL links from the specified category.)
Thanks
Forum: Fixing WordPress
In reply to: How do I change the link that an RSS feed goes to?Thanks for the quick reply esmi;
and yes, I am grabbing feeds from my own site… as silly as that might sound. With my lack of knowledge of PHP, I thought it was a simple way to get the job done.Judging from the quick once-over I just gave the site you linked me to, switching to PHP loops (instead of feeds from my own site) will allow me to customize quite a bit more than the simple widget I’m using now.
Is it detrimental to use category-based feeds to my own site, or are you offering the PHP Loop suggestion only because of the expanded customization that it will offer.
Either way,
I’ll certainly try to teach myself some PHP.Cheers