The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
64 views

Code auto escaping is not working when using short codes

I'm using this ages old, but still well working, plugin (source code here) to auto escape html inside <code>. All is well and good until I tried to use short codes to form the ...
0
votes
2answers
176 views

How to link to a alternative page in CSS

I have a wordpress site and I want to be able to completely change a page that is displayed based on the browser size in my Custom CSS, so that if it is over 1500 pixels it loads a completely ...
0
votes
1answer
171 views

Loop don't work within single.php page

I have this code below within the loop <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="new-posts-form"> <div ...
1
vote
0answers
46 views

Wordpress editor removes all the linefeed characters with WP-Markdown and Syntax Highlighter evolved

I have WP-Markdown and SyntaxHighlighter Evolved wordpress plugins installed. The issue is that when I write the code, and click the "Update" button, I have the code reformatted. [ruby] class Foo ...
0
votes
1answer
275 views

Wordpress editor, change code wrap (bbpress?)

I am developing a theme and using jquery prettify to style code tags. Sofar I love prettify, and for the most part wordpress is cooperating. When text is wrapped in <code> tags everything ...
2
votes
1answer
595 views

How do i get (unique) page name?

Like from the page of http://localhost/wordpress/about_us/ how do i get only the "about_us" ? Thanks
0
votes
0answers
511 views

How to add a class name to the ancestor <li> of a post?

I've asked this question before with a different Question Title over at Stackoverflow. At that time, I was not yet aware that a function of the theme is adding a class name called current-menu-item. ...
0
votes
0answers
34 views

Theme Option is not allowing two advertising for home only and rest of site

My Wordpress Theme(Themforest Hottopix) comes with a "theme options" section that allows you to add an ad on the header 970x90 however I was given two ads that are placed on the same spot one is ...
0
votes
1answer
218 views

CSS Styling for a Page/ Site made with Pagelines

I know how to change the HTML of page inside wordpress but for some reason I can't find the CSS for the page I'm looking for. I can find a huge amount of code made by Pagelines(Is it in there?). The ...
0
votes
2answers
76 views

random reason on refresh

I am editing the sidebar widgets and have added one for users who are not logged in or registered. the widget requests that users register or login and I am wanting to add a random reason (quote) as ...
0
votes
1answer
36 views

why is markup routinely placed in functions in wordpress?

Here is an exampple from a woothemes theme. I'm definetly not having a go at woothemes - they are a great theme provider with great standards and this sort of thing is fairly typical in themes. why? ...
0
votes
2answers
825 views

Creating a press page for our project

Over time our project got some good press: press releases, interviews, media appearances Now I want to create a "press page" (something like this). Requirements: is easy to update - everyone can ...
0
votes
0answers
37 views

Images inserted with HTML

I coded some images each image tag with a new line, so visualy you would have a row of images. When I previewed the page instead of showing me a row of images it showed me a column of images. It seems ...
1
vote
2answers
81 views

Including Angle Brackets In Pre Sections

I am attempting to post some java code between pre tags but the angel brackets get removed. For example: private HashMap<String, HashMap<String, Integer>> featureCounts; becomes ...
2
votes
1answer
436 views

Sublime Video: Playlist which gets all attached videos

I searched a way to automatically load all attached videos in a custom post type as SublimeVideo playlist. After some time I got it working and here I'll share the code with everyone who is interested ...
1
vote
3answers
605 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" ...
0
votes
1answer
130 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 ...
0
votes
1answer
304 views

Remove line breaks from <code>?

This code form HTML editor: <code>&#91;shortcode&#93; &#91;bar&#93;foo&#91;/bar&#93; &#91;bar&#93;foo&#91;/bar&#93; ...
1
vote
2answers
142 views

Hiding styles from Facebook

Some of my pages/posts have very short custom stylesheets at the beginning of them. I know this isn't great practice, but it's worked very well thus far. The problem, however, is linking on Facebook: ...
4
votes
2answers
2k views

How to create a custom button for the visual editor that adds 4 non-breaking spaces? (plugin or simple code)

To Wordpress' visual editor (TinyMCE), I would like to add a button that adds four non-breaking spaces when clicked, like this: &nbsp;&nbsp;&nbsp;&nbsp; I found some plugins that ...
1
vote
3answers
221 views

Proper implementation/use of code/syntax highlighting

I've already read what I can on a couple of sites and installed this plug-in: http://en.support.wordpress.com/code/posting-source-code/ http://alexgorbatchev.com/SyntaxHighlighter/ I'm missing how to ...
1
vote
1answer
76 views

How does WordPress determine which multisite the user is on from the URL?

What is the file and line where WordPress determines which multi-site the user is on from the URL? I've been looking through the code all afternoon and can't figure out where it turns ...
0
votes
2answers
89 views

Filter and Search

I am working on my site which is a WordPress based site. It is a sweepstakes site well winprizesonline.com is the site which inspired me most. Now I want a dynamic search like that site on my site but ...
1
vote
1answer
338 views

stats_get_csv (Wordpress Stats) to only display top posts (not pages)

I'm trying to get the first 10 posts based on page views through Wordpress Stats (now called Jetpack). I managed to get this code to work (approximately..) after digging for hours over the forums ...
-2
votes
1answer
79 views

Code snippet plugin not working correctly with Windows live writer and Wordpress

Downloaded the The Live Writer Source Code Plug-in For WordPress.com Blogs. The preview looks good but the published version looks really messed up. Could anybody let me know what could be the fix. ...
2
votes
1answer
989 views

API integration with WordPress

I'm trying to integrate a 3rd party API with WordPress. I fear this is above my head. I was this code but I'm not exactly sure how to make is work in WordPress. Is it possible? $ch = curl_init(); ...
8
votes
2answers
389 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 ...
0
votes
1answer
182 views

Commenting out in HTML editor breaks template

There is a certain section of HTML that I need to comment out within the HTML editor in Wordpress. But when I do so, it breaks the HTML. After looking at the source code, I noticed that it converts ...
0
votes
2answers
343 views

Add Permalink to Post Thumbnail, syntax code issues

I´d like to link the_post_thumbnail by using the the_permalink. I do this (It Works without link) <?php $args = array( 'post_type' => 'xyz', 'posts_per_page' => -1, 'orderby' => 'rand' ...
1
vote
2answers
122 views

How do i structure my theme folder to avoid one huge list of files

When working with a worpress site with lots of custom post types and lots of page templates, my theme folder is looking messy. What are the accepted best practices to organise code files in WordPress? ...
1
vote
1answer
80 views

Most liked page not displaying posts

I was looking for a post rating system for a while, then I stumbled across a great tutorial: http://wp.tutsplus.com/tutorials/how-to-create-a-simple-post-rating-system-with-wordpress-and-jquery/ I ...
0
votes
1answer
119 views

Themes with variable width or single columns? I want to display source code

I've just set up a new wordpress blog, and as a developer I want to post some source code as well. Now I found the suitable plug-ins I need, and also a sleek theme, or so I thought. The problem is ...
-1
votes
3answers
1k views

Is it possible to use github:gist with Wordpress? [closed]

I have a wordpress blog i.e. bruno.wordpress.com I would like to use github:gist. I paste my code in gist and get a link like: https://gist.github.com/1323748 Is there a way to show this code in my ...
1
vote
1answer
142 views

If in category to be inside of a function

I have this code in WordPress index.php and I was wondering how can I transfer this in to a functions.php to be a part of a function? <?php if (in_category('featured')) : ?> <a ...
2
votes
3answers
827 views

Pinterest Integration Using functions.php

I use a theme to build an portfolio. I´d like to add an pinterest "pin-it button" into the fuctions.php: Facebook, Google+ an Twitter were done, just the pinterest won´t work. Can´t found the the ...
2
votes
1answer
658 views

Which theme foundry has clean coded themes, where code is poetry [closed]

I'm looking to find a theme foundry (ie. woothemes, elegant themes) that has themes that are very well coded; where "code is poetry". To be more precise, I'm looking for themes coded in "the wordpress ...
0
votes
2answers
126 views

Line breaks </ br> changing to <!— br--> when switching between HTML and Visual tab!

I'm a code newbie and I was just making a wordpress post and instead of using the correct line break code of <br /> I used </ br> in the VISUAL editor. When I switched to the HTML editor ...
0
votes
2answers
616 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
389 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
1answer
335 views

Insert PHP code in Text

I have this code for insert a permalink but doesn't work, return exactly code: $text = '<form><td>Permalink to: <?php the_title();?></td><textarea cols="85" rows="2" ...
0
votes
1answer
102 views

post/page content

i am trying to insert a post/page into one of my themes files and it wont display shortcodes or php i have created a page called home in the wordpress admin-paned and inserted into my code the ...
0
votes
3answers
193 views

I want a widget to appear on only one page

I have a rotating images widget I want to display on my homepage. My selected homepage is a static front page I created with several other pages to make my blog look more like a website than a blog, ...
0
votes
2answers
309 views

How to manage multiple wordpress project with shared code base

I need to build several highly customized WordPress instances beyond look and feel changes. For example, in one of the instances, any categories with children need to display in its own dropdown on ...
0
votes
2answers
137 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( ...
47
votes
7answers
8k 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 ...
0
votes
1answer
360 views

Allow tags between shortcode in comments

On my personal blog, I would like commentors to be able to post code using certain shortcodes (eg [html], [css], [js], [php]). I still want to strip tags for comments for security reasons, but allow ...
0
votes
1answer
59 views

Changes in code only show after changing theme

I have a weird problem that happens only in one of my Wordpress sites (which is on a development server with many other wordpress sites that don't have this problem): When I make changes in code - ...
0
votes
4answers
277 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> ...
0
votes
2answers
129 views

Tips for managing code when developing a parent theme framework

I have started work on an open source theme framework that pulls in lots of great code & resources from elsewhere. For example it uses: jQuery Option Framework Theme LESS etc etc. Most of ...
1
vote
1answer
193 views

Cause of Blank Lines Being Added to WP FIles?

Does anyone know why some of my websites add a blank line after every line of code, while others on the same host and server leave the files untouched? A few details that might help: PHP Version ...