I have made fiddle here please check this out, hope you can edit the fiddle based on your needs HTML <div class='customHeight'> <div class='row'> <div class='col-sm-6 custom'> <div class='dateHolder'>27 Nov</div> </div> <div class='col-sm-6'> <div class='row '> <h3>Some title goes here</h3> </div> <div class="row bottomGap">location / date goes here</div> <div class="row...
First Try this to comment section get the image id,..... <form action="comment.php" method="post" class="col-md-12" id="commentForm"> <textarea name="comment" id="" cols="100" rows="5" placeholder="Your comment"></textarea> <input type="hidden" name="image-id" value="<?php echo '?id='.$pic_id;?>"/> <br/> <input type="submit" value="Post" name="cmsg" id="" class="btn btn-info"/> <br/> </form> Secondly on you add this to your comment.php code.... $pic=$_POST['pic-id']; if($smt) {...
There are plenty of tutorials on moving a blog from wordpress.com to a self hosted account. Subscribers can be retained using JetPack, it also helps you keep a number of other wordpress.com features. During the import you are given an option of what to do with authors, including using the...
css,post,pagination,wordpress-plugin,blogs
You're looking for Pagination. But, bearing Joe Kennedy's comment in mind, here I go: Basically, there are two methods that are used to control pagination, and they are next_posts_link( 'Older posts' ) and previous_posts_link( 'Newer posts' ). They should be placed where your main loop is. (I'm assuming you know...
symfony2,doctrine2,blogs,entity-relationship,category
Your query returns an array not an object. This will return a Category object. $category = $em->getRepository('AcmeBundle:Category') ->findOneByTitle($category); ...
html,css,twitter-bootstrap,blogs
Firstly, you need to use the graphic as background (rather an an image) in the div you want it to fill. And then since I assume you want to make repeatable dynamic blog list items, you can add the background image as an inline style. So, CSS add.. .custom {...
ruby-on-rails,ruby,routes,blogs,patch
I think I found it, in your form_for declaration you specified articles_path rather than article_path. Those are two different methods and they expect different parameters. Use article_path instead and you should get the expected result. Also, this doesn't make any difference in terms of the computer processing, but you should...
The simplest way to do this is to put Ghost behind Nginx (or Apache), and setup Basic HTTP Auth for URL of your restricted post. No need to hack anything in Ghost or node. But keep in mind that Basic HTTP Auth is not secure enough (it is good for...
Use this code for no of character display: <?php Mage::helper('core/string')->truncate($post->getShortContent(), 100); ?> More info to code...
You need to have field in db table for category category name. Option 1: You can either add it to blog's table Option 2 (Harder method but better): You can create another table for category and then have its primary key as a foreign key in your blog table. Learn...
It seems in your site the div container for the blog header and social icons is nested within the div with id="page-header-bg" when it should be within the div with class "container-wrap". It looks like this is done within your theme so the best thing to do is to copy...
android,ios,wordpress,mobile,blogs
I would just install a theme that is responsive, so that it's mobile friendly. By the way you asked the question, this sounds pretty ambitious. However, if you want to get your feet wet, consider looking into PhoneGap / Cordova perhaps.
To use Tipue search there are some more steps to execute after enabling the plugin. Here is a good tutorial. Don't forget that you can also use Google Custom Search....
openshift,blogs,redhat,ghost-blog
Source: https://ghost.org/forum/installation/16533-resolved-upgrading-ghost-0-5-to-0-5-2-on-openshift/ Thanks fuzzmz. Set up a new installation using: rhc app create test nodejs-0.10 mysql-5.1 --env NODE_ENV=production --from-code https://github.com/openshift-quickstart/openshift-ghost-mysql-quickstart.git Go to URL/ghost and setup the admin user. Download latest Ghost archive. Extract archive. cd to the test folder. delete index.js and package.json. delete the core folder. delete the content/themes/casper...
A simple solution would be to just move the last '}' so it's after you print the two rows. In that way your code would print several lines for several results. (also make sure you move the <table> and </table> outside so you don't create lots and lots of tables)...
css,wordpress,wordpress-theming,blogs
That is the default behavior of body_class(). If there are other classes that you want in addition to the standard classes, you can add them by: body_class( 'classname' ) or body_class( array( 'classname1', 'classname2' ) ) So if there is some class you always want, just modify the body_class function...
Looks like you've got a few issues in your single.php file. Remove do_shortcode() for your title- that is only for using Shortcodes outside of the Content Editor. Instead the Page title is displayed using: <?php the_title(); ?> Inside your while loops, it's looking for a separate content template file. I'd...
symfony2,doctrine2,tags,blogs,entity-relationship
Instead of querying for blog use tag. $em = $this->getDoctrine()->getManager(); $tags = $em->getRepository('AcmeBundle:Tag') ->findOneByTag($tag); $blogs = $tags->getBlogs(); return array( 'blogs' => $blogs, ); ...
Try this: {block:GroupMembers} {GroupMemberPortraitURL-30} {/block:GroupMembers} ...
What you are trying to achieve can be handled in a more "Wordpressy" and sophisticated way using Custom Post Types (a.k.a CPT's). You have complete control over the Custom Post Type you create including the URL to display. If you don't want to code the CPT yourself there are plugins...
This code is in jekyll paginate plugin
Only use nl2br() when outputting HTML. When he wants to edit something, leave it as it is; the \n character will be parsed in a text box (which I assume is what you're using) anyway. Yeah, you need to escape them (and I'd suggest you look into prepared statements...
blogs,web-hosting,blogger,google-webmaster-tools,blogspot
I managed to fix the Issue yesterday. While investigating I noticed the my domain name was assigned 4 name servers. The two nameservers shown on settings tab were different from the two nameservers shown on DNS Zone file tab due to which Google blogger was unable to verify domain ownership...
python,django,many-to-many,blogs
The problem is related to this instruction : post.categories = post.categorytopost_set From the Django documentation: Unlike normal many-to-many fields, you can’t use add, create, or assignment (i.e., beatles.members = [...]) to create relationships. In your scenario you should manually create the CategoryToPostobject with both references to Post and Category and...
Tags are just a list of unique strings. Front : I use Select2, there is a really good tag feature : http://ivaynberg.github.io/select2/. It will take/return a string to the server with each "tag" separated by a comma : tag1,tag2,tag3. You can also configure a web-service to research existing tags. Back...
There is actually no way for Google Analytics to know when your blog posts where published, because it can't access your blog's database and pull up that information. However, some blogging platforms insert the date into the URL. For example Wordpress: http://ac360.blogs.cnn.com/2014/11/21/american-journey-paralyzed-marine-stands-and-accepts-his-bronze-star/?hpt=ac_mid. As you can see the date is actually...
is that correct?? please double check <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('blog-banner')) : else : ?> //i think i should be like below: <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('blog-banner')) dynamic_sidebar( 'blog-banner' ); else : ?> ...
Do not use get_posts for paginated queries as it is not meant for that. get_posts legally breaks pagination to speed up non paginated queries by passing no_found_rows=true to WP_Query. Also, get_posts only returns the $posts property from the WP_Query object, so this all together makes pagination of get_posts a total...
You are doing nothing wrong. The command Post.objects.filter(published_date__isnull=False) means if there is any post where published_date is not null, and it returns empty list means all posts have null published_date. EDIT Restart your shell and see if you get any data with Post.objects.filter(published_date__isnull=False)...
ruby-on-rails,ruby-on-rails-4,blogs
@post = Post.offset(rand(Post.count)).first query would return a single random record from posts table so you cannot call each on it (@post.each) as it is not a collection. To display that random post in your view, use <%= @post.try(:field_name) %> where replace field_name with the field from posts table that you...
ruby-on-rails,ruby,validation,blogs,maxlength
If you want to shorten your text to a certain amount of characters you could use truncate: truncate("Once upon a time in a world far far away", length: 17) # => "Once upon a ti..." If you really want to shorten your text to a certain amount of words, you...
That links to /category/all/, but your recent posts are uncategorised and show up at /category/uncategorised/.
php,wordpress,blogs,permalinks
If you want to display the unique id of the post after it's name, you can do that from Custom Structure inside WordPress Permalink Settings by adding this structure. /%postname%/%post_id% It is not working on localhost, but it is working on online website. ...
I deleted the module, then re-installed it with composer as wmk suggested and it seems to work now. Thanks!
And here is the code that meets your specific needs jsFiddle The below code is a base example to make it more reusable for everyone else. ul, li { list-style-type: none; padding: 0; margin: 0; } ul { width: 50%; height: 300px; padding: 20px; background-color: red; } li { background-color:...
mysql,wordpress,blogs,spam,spam-prevention
Since you're running WordPress, here are two steps you could take to avoid spams. Steps: 1) Activate akismet. Visit this link to know more. 2) once logged into your site's dashboard go to -> Settings -> Discussion. Then under Other comment settings check the checkbox that says Users must be...
Examining the code for the githubActivityFor call, we see: $.get('https://api.github.com/users/' + username + '/events?callback=?', function(activity) { ... }, "jsonp"); The "jsonp" argument tells jQuery that that JSONP is being used here, and the resource should be loaded inside of <script> tag instead of fetched with Ajax. Sure enough, we we...
symfony2,tags,blogs,entity-relationship
This should be pretty easy by doing the following: public function getBlogs($limit = null) { $qb = $this->createQueryBuilder('b') ->select('b, c, tag') ->leftJoin('b.category', 'c') ->leftJoin('b.tags', 'tag') ->addOrderBy('b.created', 'DESC') ; // ... } ...
blogs,sitefinity,email-notifications
It looks like this is possible, but not without some custom coding. http://bit.ly/sf-customLogicForSFWidgets Create a .class file in your Sitefinity project solution then we must find out how to inherit one widget. For this example I will be inheriting Sitefinity login control. To find the needed path that should be...
https://codex.wordpress.org/Post_to_your_blog_using_email says that its depreciated and will probably be removed so its best if you download one of their suggested plugins and configure it within the plugin of your choice.
ruby,resources,blogs,middleman
Start bundle exec middleman server in your project dir and visit http://localhost:4567/__middleman/config/ . You will see a list of all options with explanations....
sql,database,wordpress,content-management-system,blogs
You can do that by doing following steps: 1) Go to old wp admin panel and click Tools > Export, on opening page select Post from options and click export 2) After export XML, go to your new wp site admin panel and click Tools > Import. If it is...
Since you have not yet tried anything i will give you link try Must Read This...
I gave a look at your repository at https://github.com/wsstriving/wsstriving.github.io What I found is a website that use Jekyll architecture. So, for some useful tips you can refer to Jekyll documentation here. I've try to build your site locally, using Github pages setup and I discovered that your _posts/2015-05-24-markdown.md has some...
Add {block:PermalinkPage} before {block:IfDisqusShortname} and add {/block:PermalinkPage} after {/block:IfDisqusShortname} like this: {block:PermalinkPage} {block:IfDisqusShortname} //Disqus' code {/block:IfDisqusShortname} {/block:PermalinkPage} ...
Zinnia's Entry model has an excerpt attribute, if thats what you mean my summary. https://github.com/Fantomas42/django-blog-zinnia/blob/master/zinnia/models_bases/entry.py#L352 You'll need to override entry-detail template if you want to add the summary to sidebar for a blog entry. http://docs.django-blog-zinnia.com/en/develop/how-to/customize_look_and_feel.html#templates-for-entry-detail And to limit characters for excerpt you can extend the entry model http://docs.django-blog-zinnia.com/en/develop/how-to/extending_entry_model.html ...
javascript,node.js,express,blogs,backend
You can checkout mean.js. It is a fullstack javascript framework that lets you generate crud modules (articles for your blogs) and more.
You have to add body { margin:0; padding:0; } and change your css .logo{ text-align: center; display: block; margin:15px; } to this .logo{ text-align: center; display: block; margin:0 15px 15px 15px; } JSFiddle...
html,hyperlink,blogs,blogger,blogspot
The best way to do this would be to replace <data:post.body/> with <b:if cond='data:blog.pageType == "index"'> <div class='index-artwork'> <a expr:href='data:post.url'> <img expr:alt='data:post.title' expr:src='data:post.firstImageUrl' expr:title='data:post.title'/> </a> </div> <b:else/> <data:post.body/> </b:if> If you still want to have text on your index pages as well as the image with a link to the...
Removing anything not related to Microdata, you have: <div itemscope itemtype="http://schema.org/BlogPosting"> <img itemprop="image" src="…" /> <div itemprop="name"> <a href="…" itemprop="url">…</a> </div> <span itemprop="description">…</span> </div> That is fine from the Microdata and the Schema.org perspectives....
Ok, I was looking wrong, the variable in jekyll which contains those information is site.related_posts. However, there seems to be some problem with it, when using in GitHub Pages, which makes it mostly useless. Many people just get the list of post in chronological order. There is an issue which...
add a file in your theme called category.php then add the loop code into it. <?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_title();?> <?php the_content();?> <?php endwhile; wp_reset_postdata(); endif; ?> <?php get_footer(); ?> ...
google-maps,search,website,blogs,blogger
It depends on several things, such as how many views the site gets, how you submitted the update, etc. Because you submitted the homepage to Google's Webmaster tools, it should update soon, in about a day or two. Some things you can do to help speed it up are submitting...
css,ruby-on-rails,hyperlink,blogs
In cases like these, the dev console is really helpful, and allows you to inspect elements and their CSS. Right click on an element and click "Inspect Element", in Chrome or Firefox. Here, you discovered that you had to restyle the color of the link within the h2 (h2 a),...
dotnetnuke,overloading,add,blogs,dotnetnuke-module
I don't know the language you are programming in, or the context, but when I see Errors like this, I look if one of the inlined function calls (GetString, or EditUrl in this case), have been closed to early -- i.e. one of the arguments you are passing to Add...
If you want only first paginated page different, you will have to use condition if( get_query_var('paged') == 1 ): instead of if(is_front_page()):
forms,symfony2,templates,redirect,blogs
You have to make sure you post (not "redirect") the form to the second controller. To do so you need to specify the action attribute of the form-tag. <form class="well" action="{{path("_blog_backend_post_create")}}" method="post" {{ form_enctype(form_post) }}> When you submit the from, the code in you createAction will be executed. (Also, remove...
php,controller,blogs,silverstripe
We can retrieve Post and Get variables with some functions on the SS_HTTPRequest object. We can get the SS_HTTPRequest object from our Controller. SS_HTTPRequest has a function getVar($variableName) to retrieve Get variables. If your function is in your controller you can call the following to get your $_GET variables: $startValue...
Insert this in your <head> inside of <stye> tags: .tabs-inner .section:first-child ul { background: #000 !important; } .tabs-inner .widget ul { background: transparent !important; } Update: To center the li elements .popular-posts ul { margin: auto !important; width: 1040px !important; } May be you need to use @Media queries, to...
I managed to replicate your problem with my own Middleman blog setup. The docs are unclear on this because there is a broken link in the layout section of Blogging. You need to use the nested layout feature of Middleman and wrap your custom layout in: <% wrap_layout :layout do...
In general, not having a href link in the is not recommended for SEO reasons. Google's crawler relies on the the href in the links to crawl the site, and link juice passes on using the href in the tag. For your site to rank better in the search results,...