The code tag has no wiki summary.
-1
votes
0answers
14 views
How to make this display none [closed]
I´d like to make whole this code
<object type="application/x-shockwave-flash" data="http://img.mail.ru/r/video2/uvpv3.swf?3" width="573" height="325"><param name="movie" ...
0
votes
1answer
56 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
25 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
127 views
Show page title just from the first child-page in template
how can I do this:
Pages:
Home
- sub-1
-- sub-sub-1
--- sub-sub-sub-1
On home-page should only show the page-title of the first child-page like:
sub-1
I found this:
<?php $child_pages = ...
-2
votes
0answers
26 views
Coding Conventions Converter? [closed]
I have recently changed my mind about the style of my PHP code. I used to write as space-saving as possible, e.g. I consciously have written like:
<?php if($array['value'] == 'bla') { ... } ?>
...
0
votes
1answer
27 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
32 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
5 views
Dynamic heading for page and sub-pages, while sub-pages display a description field from their grandparent page [duplicate]
I want to have a heading that dynamically changes when I change the section i.e. the About us section and all sub pages have a heading of About us and a sub heading description of a custom description ...
0
votes
0answers
29 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 ...
0
votes
0answers
13 views
Strange behavior when I insert XML code snippet into articles using SyntaxHighlighter Evolved Plugin
I am using WordPress for a technical developing blog.
I am using the base WordPress editor to write my articles (not using other plugin)
I am using the SyntaxHighlighter Evolved Plugin to enter code ...
1
vote
2answers
43 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
202 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 ...
0
votes
0answers
17 views
How can I have a full comments.php for an easy editing of all its aspects?
Is there a way to get the full code of the comments.php instead of the one I have with any recent theme where I just can edit few parts of it?
I know it's encoded but I wonder if there's a chance to ...
0
votes
0answers
47 views
Votes showing up on one page but not on “most voted” page [closed]
Using plugin -> "Vote It Up" wordpress.org/extend/plugins/vote-it-up
i have one page displaying all the posts with a voting option and everything works fine with with:
<?php /* Start the Loop */ ...
1
vote
3answers
425 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
71 views
Log in / Log Out Custom Button
On our website we have a "Join" button in the top right corner and a log in / log out link using <?php wp_loginout(); ?> . Instead of having the log in / log out link we would like to have it ...
0
votes
1answer
59 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
45 views
WP-Markdown treating java generics like HTML tags
With some Java generic code in a code block, ie:
List<Integer> l = new ArrayList<Integer>();
WP-Markdown was treating as HTML, and no matter what I did, the code above got turned into ...
0
votes
1answer
113 views
Remove line breaks from <code>?
This code form HTML editor:
<code>[shortcode]
[bar]foo[/bar]
[bar]foo[/bar]
...
0
votes
0answers
8 views
Using prefixes in Wordpress [duplicate]
I have a question about prefixes that pro Wordpress themes tend to use.
Example:
<?php bandit::lang('post_meta_on',__('on','sprout')); ?>
Why 'sprout' is there? What is it good for?
Thank ...
1
vote
2answers
95 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
907 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:
I found some plugins that ...
4
votes
2answers
158 views
WordPress Internal @ Mentions
I'm looking for a way to link to author pages within one WordPress install simply by putting the @ symbol in front of a person's username in a post.... just like on twitter.
Example:
If the username ...
0
votes
0answers
23 views
help understanding this code [closed]
I have this code in a site that I am trying to understand. I don't get exactly what it does. I get some of it but not all
$nav_posts = $wpdb->get_results( "SELECT id FROM $wpdb->posts WHERE ...
1
vote
3answers
200 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
41 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
63 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 ...
0
votes
1answer
60 views
Trying to find where it formats the date when just echoed in this plug-in code [closed]
I am trying to find out where it formats the date when just echoed in this plug-in code here and I'm lost?
This code is kinda long so here is the pastbin to it: Hebrew Date php code
And here is a ...
1
vote
1answer
141 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
56 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.
...
1
vote
1answer
221 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
262 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
71 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
97 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
83 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
63 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
69 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 ...
16
votes
5answers
20k views
How to display sql query that ran in query?
I have come across a function before that displayed the exact SQL code that was used
in a loop for example, but can't remember.
Can anybody tell me that function?
Cheers
-1
votes
3answers
957 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
79 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
500 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 ...
0
votes
1answer
43 views
when editing a widget, all previously made options are gone [closed]
here's what 's happening: The widget I'm building is rendering a title, a body and some buttons bellow it. The user can change the title, the body, the label and the link of each button.
When the user ...
1
vote
1answer
277 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
89 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
171 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
214 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
169 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
246 views
Wordpress is converting & to & inbetween [code] brackets
I installed a syntax highlighter plugin so I could post and highlight code snippets.
My problem is wordpress is converting special characters in my code (e.g. from & to &) when I really just ...
0
votes
1answer
58 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
98 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, ...

