• Resolved jfantasybooks

    (@jfantasybooks)


    Details:

    Name: JFantasyBooks
    Site: Fantasy-Updates
    Site Url: https://fantasy-updates.live
    WordPress Version: 4.6.1
    WP RSS Aggregator Plugin Version: 4.9.1

    Necessary Information:

    Hello,

    So, following the site’s advice, I bought the views plugin which interacted well with WP RSS Aggregator. The only reasons why I need the views plugin is because it’s able to generate shortcodes that spit out the results i’m looking for. For example, the feed output just shows the authors for each recent feed.

    Or… just shows the unique titles, and not the entire wp-rss-aggregator dipslay

    ex.[wpv-post-field name=’wprss_item_author’] displays the results (example names):

    Author 1 (from feed x)
    Author 2 (from feed y)
    Author 3 (from feed x)
    and so forth.

    Same thing you would have gotten if you used the [wp-rss-aggregator] shortcode, but with just the authors. No structured display.

    But it’s not just those I use, but:

    [wpv-post-field name=’wprss_feed_id’]
    [wpv-post-field name=’wprss_unique_titles’]
    [wpv-post-field name=’wprss_item_permalink’]

    ….

    But where is the problem, you may ask?

    Problem:

    Views plugin slows my site 3-4x. It’s so slow to upload that it deters visitors. And I’ve heard of some complaints.

    And the display of the shortcode is not something that I need. I need each element separately. Only for the plugin to show unique titles, or only show the authors.

    Possible solution:

    The view I want is quite possible for me to design easily. Only things I need are those shortcodes. I’ve looked into the code provided by the plugin, but i’m not sure where the output for the wp rss display is generated. ex. just the output of the authors for a particular feed.

    I know for sure that ‘wprss_feed_id’, ‘wprss_unique_titles’ is actually a part of the plugin code. So, views plugin is not just making up the names. The output is somewhere in the plugin code.

    I just need help finding it. So I can make the shortcode. Or if you can help me make the shortcodes, I would be extremely grateful.

    Thank You.

    • This topic was modified 9 years, 7 months ago by jfantasybooks.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jfantasybooks,

    If you’d like to know which post meta used by the Feed Items or how do the Post Meta displayed in general, you can look at the wprss_render_feed_item() function on includes/feed-display.php file.

    You’ll find the wprss_item_permalink on line 72, for example.

    Hope this helps.

    Thread Starter jfantasybooks

    (@jfantasybooks)

    Thanks for getting back to me!

    I have found that earlier. Problem is when I try to summon the data with a shorcode. Doesn’t appear to work. Any suggestions?

    I know this may be asking a bit much. I’m not adept in coding.

    Can you give me an example on how you would generate a shortcode for summoning the values of that meta to generate a list for all the feeds for let’s say wprss_item_permalink, for example. If so, I would be able to figure out the rest.

    It would look something like

    Permalink 1
    Permalink 2
    Pemralink 3

    And so forth from the imorted feeds instead of the entire display. An example for either the author, feed title, permalink. Any would do would give me a step forward in solving this problem.

    Thanks.

    Hi @jfantasybooks,

    Unfortunately, since the sample code you ask will be a little bit complex (at least require more than 2-3 lines of code), we couldn’t help you with that.

    That being said, we can at least give you as a bit guidance. First, you should create a loop for all your feed items. Then you can use get_post_meta() to call each post meta from each feed items. Last, you can wrap them all as a shortcode using the add_shortcode() function.

    We couldn’t help you from scratch, but if you have already a base code which half way to do that and would like us to review your code, we would be glad to do it.

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

The topic ‘Generating Shortcodes, display’ is closed to new replies.