PHP pulling in and displaying URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
longwolf3
Forum Newbie
Posts: 3
Joined: Mon Nov 30, 2009 3:46 am

PHP pulling in and displaying URL

Post by longwolf3 »

I'm new to this lark, but have recently set up a new website using Word Press.

On my site homepage http://www.myhdpackage.com, there's a slideshow at the top of the page is which is displaying the page URL in the entry summary for the featured articles.

Anyone know how I can remove this? I presume it's something to do with this line of PHP, but I have no idea how to fix it.

Code: Select all

<?php echo arras_strip_content(get_the_excerpt(), 20); ?>
Does anyone, with more intelligence than me have an inkling on how to fix this?

Thank you very much in advance
Nick
User avatar
mjdigital
Forum Newbie
Posts: 3
Joined: Tue Dec 01, 2009 7:20 am
Location: London

Re: PHP pulling in and displaying URL

Post by mjdigital »

OK - it looks like you are using the Arras theme for WordPress - the line of code you posted gets the excerpt from each blog post, if this is not used then it will default to the URL data. Have you made sure you specified an excerpt for each post - there should be a box under the main post content?

If you have filled in the excerpts then what version of Arras are you using?

MJ
longwolf3
Forum Newbie
Posts: 3
Joined: Mon Nov 30, 2009 3:46 am

Re: PHP pulling in and displaying URL

Post by longwolf3 »

Hi MJ,

Thanks for the response, much appreciated. I've tried specifying and not specifying an excerpt with similar results.

If I specify an excerpt then it only pulls one URL. If I don't then it pulls two URLs. There are examples of both on the homepage.

I'm on Arras version 1.3.6

Nick
User avatar
mjdigital
Forum Newbie
Posts: 3
Joined: Tue Dec 01, 2009 7:20 am
Location: London

Re: PHP pulling in and displaying URL

Post by mjdigital »

OK - can you try something for me? It looks like it is putting your twitter count/retweet function in the same space as the excerpt - can you disable the plugin and see if it makes a difference?

Let me know if it does or not.

MJ
longwolf3
Forum Newbie
Posts: 3
Joined: Mon Nov 30, 2009 3:46 am

Re: PHP pulling in and displaying URL

Post by longwolf3 »

Genius, that fixed it. Thanks very much.

I presume the theme and retweet button are in conflict with one another then. I'll have to leave this disable, I presume.

Nick
User avatar
mjdigital
Forum Newbie
Posts: 3
Joined: Tue Dec 01, 2009 7:20 am
Location: London

Re: PHP pulling in and displaying URL

Post by mjdigital »

Excellent - glad it works now. You could always try a different plugin that allows you to share - there are loads about.
Post Reply