The code tag has no wiki summary.
6
votes
2answers
1k views
Return $post_id when DOING_AUTOSAVE?
I see the following pattern over and over, on this site and on other places:
add_action( 'save_post', 'wpse14169_save_post' );
function wpse14169_save_post( $post_id )
{
if ( defined( ...
0
votes
1answer
293 views
Formatting <code>?
I have serious trouble displaying code blocks in my theme.
I want to display something like:
<something>
<something-else>
Content
</something-else>
...
0
votes
2answers
154 views
I want to remove the links from the term list returned by get_the_term_list
I want to keep this category title on my pages, but I don't want it to be a link.
<?php echo get_the_term_list( get_the_ID(), 'portfolio_cats', ' ', ' , ', ' '); ?>
Can anyone help?
Thanks
0
votes
1answer
203 views
How to remove automatic generated <p> tag in Home page
I am new to Wordpress and need some helps here. I am trying to add posts that have written codes for the demonstrated purpose of programming languages.
I installed SyntaxHighlighter Evolved plugin. ...
0
votes
2answers
114 views
Where do you add code in custom fuctions so it works on a specific page?
Thanks for replying but I still can't get it to work. Is anything wrong with this code?
<?php
class custom_loop extends thesis_custom_loop {
function page() {
if(is_page( ...
39
votes
7answers
3k views
Best collection of code for your .htaccess file [closed]
We have the Best Collection of Code for your functions.php file thread, so I thought that it might be useful to create a thread for our .htaccess files.
AND PLEASE REMEMBER TO ADD ANY OF YOUR OWN ...
4
votes
5answers
530 views
What theme is good for posting code?
I have my blog hosted at www.alphaot.com and I guess it's good enough. But problems arise when the lines of code get longer than 30 characters. The lines just wrap and get icky or something they even ...
1
vote
2answers
87 views
How can I include PHP-Code to my post?
I would like to use PHP in some posts. These posts should look like normal posts, be in the archive and categories like normal posts an have tags.
I don't need PHP in every post, but it would be ...
1
vote
3answers
416 views
Code Friendly Block Quotes
I have a self-hosted Wordpress Blog (located at http://www.dougmolineux.com/wp if you're interesed :)
I put a lot of Code Snippets on there, because I'm a programmer. How do I make these "snippets" ...
1
vote
2answers
224 views
VERY new to coding - keep breaking site trying to add to functions.php
I really appreciate everyone on this site who takes the time to answer questions here. I've learned a good deal already reading, but am sure I could learn even more if I could get past at least one ...
0
votes
4answers
226 views
Problem with <code> tag
Where you can see it: http://themeforward.com/demo2/functional-codes
The first button is my code, as it should appear. The second button is within <pre><code></pre></code> ...
8
votes
2answers
255 views
How to get a variable number of posts per post type on the main loop?
I'm looking for a way to balance the content at the homepage of my blog:
the blog has a few post types like Poscasts, Videos and Blog and I'd like to have let's say 10 Posts on the homepage, but I'd ...
1
vote
2answers
338 views
write in functions.php
i just want this code to be added in my functions.php, so that it will directly display after my post ends
currently i am adding this code to my single.php,
but i want to add this is in functions.php, ...
0
votes
1answer
58 views
Anchor Text code string is automatically modified by WordPress
I have created an ad for a merchant wanting to rent ad space on my website home page. After creating the ad, (anchor text and pic/graphics with embedded hyperlink) the merchant has requested I remove ...