Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter atakajeff

    (@atakajeff)

    Figured what I wanted to above is not possible, so I came up with a work around. Since I’m not using the excerpt field, I can do

    if (! $items["mydesc"]){$post['post_excerpt'] = $items["mylink"];}
    else {$post['post_excerpt'] = $items["mydesc"];}

    And then use that in my loop. Can link to both the defined, external permalinks or the original source post this way.

    Was also thinking about adding in a function to look for links in the post content, since the individual post pages will not be accessible, but I figured the excerpt solution was simpler.

    Is there a more appropriate way to go about doing this or would you say this workaround is suitable? I also tried using add/update meta data to pre set the custom field that is actually used for this info, so I can avoid making the if excerpt exists call in my loop, but it didn’t work out.

    Thread Starter atakajeff

    (@atakajeff)

    Gotcha! I saw in an earlier thread that you had said the same thing, but I found no way to call on the content. Is there a variable I can call on to include this information within my separate loop template?

    Thread Starter atakajeff

    (@atakajeff)

    Alright, I set up up the custom feed and added the following codes courtesy of Yoast to include the image

    xmlns:media="http://search.yahoo.com/mrss

    <?php if(get_the_post_thumbnail()): ?>
    <media:content url="<?php echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>" medium="image" />
    <?php endif; ?>

    I then added an external featured image link plugin which I modified to use catch that image to fill in the input field

    NOW, my last issue is pulling the RSS description or content to use in my custom post type loop which is displaying the aggregated feed items turned posts.

    Referencing $items[“mydesc”] has no result, so I’m sure I’m doing something wrong.

    Basically, I have a meta field’s data (a single hyperlink per post) placed in the description channel of my RSS feed. I’d like to take that description/link and use it as a link within the loop.

    Thread Starter atakajeff

    (@atakajeff)

    Partially solved, created a separate custom feed, just need to get it to include the featured image so it is aggregated by the plugin

    Thread Starter atakajeff

    (@atakajeff)

    emailed you the link
    issue #1 solved, still left with #2

    Thread Starter atakajeff

    (@atakajeff)

    So close! Issues:

    1. messes up styling, subsequent divs are not recognized
    I noticed the original code had a >\n” at the end, does that close off the echo to initiate the div? I tried inserting it in various places to no avail.

    2. only works for the first page
    links on the second page direct to /category/page/2/>http:/host.org/2012/2149/

    Let me know if seeing the site itself would help.

    Thread Starter atakajeff

    (@atakajeff)

    Figured out the error was from not previously not having specified the category. Its working perfectly now!

    Which leaves my final issue, adding the onclick url function to the post_class div. Without the echo, I’d do:

    <div class=”post_class” onclick=”location.href='<?php the_permalink() ?>’;”>

    but the echo seems almost incompatible with the function, I’m guessing due to the conflicting apostrophes or quotes?

    Thread Starter atakajeff

    (@atakajeff)

    Can’t tell you how much I appreciate your helping me. I’m still new to wordpress and coding, and I try to solve everything on my own (usually by trial or error) but I definitely bit off more than I can chew with this endeavor.

    Here is the code for my loop template. Please let me know if you need anything else. I considered emailing you instead, but maybe some other member will benefit from this as well. I plan on spending the weekend educating myself on your site 😉

    edit: also, please ignore the breaks, internal hr styling, etc. (embarrassing!), my work is very sloppy until I finalize everything

    Thread Starter atakajeff

    (@atakajeff)

    Awesome, thanks! After about an hour of fiddling around with it, I’ve achieved half of the functionality I’m after. Now, my only two issues are:

    1. it displays posts from all categories (tried adding in a separate query to display category ’11’ but it turned up blank)
    2. pagination breaks after a few pages (fiddling around with reading post count and my category post counts set via functions.php seems to have some effect, but it still breaks)

    Any suggestions? I used the code pretty much as is, but changed the CSS, post data section, and posts per row/page. The general structure is still the same.

    edit: Also, any way to implement this code via echo?
    onclick=”location.href='<?php the_permalink() ?>’;”
    Previously I had been using this easy solution (the others didn’t work) to make the entire div a link. However, the apostrophes around the php seem to be conflicting with the inherent echo’code’ markup.

    Thread Starter atakajeff

    (@atakajeff)

    Hm, maybe I should stick to one loop then.

    However, I was running into issues separating the posts into columns with a single loop.

    Column A would be fine, but Column B was treated as the first child column, since it was in the loop. Therefor it didn’t have a left margin.

    I couldn’t think of a way to dynamically insert that margin in between the two columns other than to code the layout first and then fill it in with the loops.

    Thread Starter atakajeff

    (@atakajeff)

    I checked and mod_rewrite is not running, nor does yahoo support it
    (list of supported functions: http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/php/php-33.html)

    also spoke with a rep, he said it sounds like a htaccess issue, which yahoo does not allow access to for security reasons

    anyone have any suggestions for a workaround?
    I was considering installing wordpress manually in the root, instead of one click install then moving it, but I’ll wait for a time when we’re expecting less traffc

    Thread Starter atakajeff

    (@atakajeff)

    grr, can’t edit post
    I decided to reinstall wordpress to root, since my permalinks started breaking all over the place

    my site is functioning fine with permalinks set to default (so pages display as /?page_id=30, /?page_id=9 etc.)

    However, when I change the permalink to post name I get 404’d

    reaaaally need it to display as domain.com/pagename
    I’ve found a lot of documentation on this issue, but so far no workable solutions, apparently it had been solved?
    I’ll keep looking, in the mean time help would be appreciated 😉

Viewing 12 replies - 1 through 12 (of 12 total)