Results 1 to 3 of 3

Thread: How to add new tag 'cp_city' to RSS 2.0 feed ?

  1. #1
    Thread Starter
    Rookie meatclub's Avatar
    Join Date
    May 2012
    Location
    Israel
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to add new tag 'cp_city' to RSS 2.0 feed ?

    Hi,
    I really need help...
    What I have to put inside the RSS-code to get town (cp_city) in RSS feed with all one ads?
    Town - is required line, so i need only put it inside...

    Any ideas?

    This is the regular RSS 2.0 part of code:
    HTML Code:
    ...
    <item>
    		<title><?php the_title_rss() ?></title>
    		<link><?php the_permalink_rss() ?></link>
    		<comments><?php comments_link_feed(); ?></comments>
    		<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    		<dc:creator><?php the_author() ?></dc:creator>
    		<?php the_category_rss('rss2') ?>
    
    		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    	<?php endif; ?>
    <?php endif; ?>
    		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    <?php rss_enclosure(); ?>
    	<?php do_action('rss2_item'); ?>
    	</item>
    ...
    Thank you very much!!!

  2. #2
    Thread Starter
    Rookie meatclub's Avatar
    Join Date
    May 2012
    Location
    Israel
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    pvgv74's Avatar
    Join Date
    Aug 2012
    Location
    Ecuador
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Cp_city dropdown
    By pixel in forum ClassiPress General Discussion
    Replies: 15
    Last Post: January 6th, 2014, 11:50 AM
  2. [MOD NEEDED] Is there any way to change the CP_CITY field to allow being a drop down
    By brianh in forum ClassiPress General Discussion
    Replies: 0
    Last Post: November 26th, 2012, 11:39 PM
  3. How to edit cp_city field
    By welder in forum ClassiPress General Discussion
    Replies: 9
    Last Post: February 22nd, 2012, 09:15 AM
  4. How to edit cp_city field
    By welder in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: January 10th, 2012, 02:51 AM
  5. cp_city gray can not change to dropdown
    By frcamp in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: March 11th, 2011, 09:42 AM